This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id | |
######### _stars.html.erb ################### | |
<div id="starRating"> | |
<%= form_for(rating_ballot, :html => { :class => 'rating_ballot' }) do |f| %> | |
<%= f.label("value_1", content_tag(:span, '1'), {:class=>"rating", :id=>"1"}) %> | |
<%= radio_button_tag("rating[value]", 1, current_user_rating == 1, :class => 'rating_button') %> | |
<%= f.label("value_2", content_tag(:span, '2'), {:class=>"rating", :id=>"2"}) %> | |
<%= radio_button_tag("rating[value]", 2, current_user_rating == 2, :class => 'rating_button') %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you get this disgusting error just: | |
gem uninstall addressable --version 2.0 | |
~/merbtest ben$ merb | |
Loading init file from /Users/ben/merbtest/config/init.rb | |
Loading /Users/ben/merbtest/config/environments/development.rb |
NewerOlder