link_to_remote as GET?

ingoweiss
2006-09-20T21:00:09Z

Hi,

this code:

link_to_remote(''edit'', :url => edit_answer_url(quiz,
question, answer))

gives me the following error:

Routing Error
No route found to match
''/quizzes/1/questions/2/answers/24;edit'' with
{:method=>:post}

Do I need to send the Ajax request as a GET? If yes how is this done?

Thanks!
Ingo


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---