I have this line in routes:
map.resources :questions, :new => {:vote_for => :put, :vote_against => :put}, :has_many => :replies, :shallow => trueAnd I use the following helpers in my view:
link_to 'OK', vote_for_question_path(@question), :method => :put link_to 'NO', vote_against_question_path(@question), :method => :put
But unfortunately there is something wrong with my code, as Rails says:
undefined method `vote_for_question_path' for #
What's wrong?