The code above it's Rails 2, since the form_remote_tag is now deprecated, so the straight-forward question is: What's the equivalent in Rails 3 for the following line (I know already I must use the form_tag keyword) ? ?:

<% form_remote_tag :url => story_votes_path(@story) do %>

But I don't know how to get it to work so that I can still use the URL_HELPER (story_votes_path) in this case.

An additional note, the book states that in order to create the nested resource I should use the following (in routes.rb):

map.resources :stories, :has_many => :votes

However I'm inclined to say that the correct and equivalent Rails 3 way is the following:

resources :stories do
resources :votes
end

Since it correctly gives me all the routes detailed in the book by using the rake routes command: