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