Hello,
I'm using the highly recommended "Simply Rails 2" book with rails 3, so I've been running into problems here and there I've been able to work out for myself so far. But today I've hit a problem I can't find help with....
On page 222, there's a bit about adding some code to the webpage to show a "shove it!" button. The code that's giving me a problem is the following in the app/views/stories/show.html.erb file:
Code HTML4Strict:<div id ="vote_form"> <% form_remote_tag :url => story_votes_path(@story) do %> <%= submit_tag 'shove it' %> <% end %> </div>
The error I'm getting is "undefined method `story_votes_path' for #<#<Class:0x210fe6c>:0x210d93c>"
I've tried everything and I'm totally stuck. Thanks.




Bookmarks