Building my RESTful application, started with pure HTML, now I''m
building in Ajax support. If I use link_to_remote to my new action, I
get
ActionController::RoutingError (no route found to match
"/users/pergesu/people/new" with {:method=>:post}):
This is solved by adding :method => :get to the link_to_remote call.
However I''m wondering why the Rails guys decided to write LTR like
that in the first place. Just like link_to, shouldn''t the default
behavior be GET? It''s just generating a link...and if you want
different behavior then you should specify it.
It''s only a minor annoyance, mostly I''m curious as to the
decision here.
Pat
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---