I have two named routes: map.edit_setting 'setting/:key', :controller => 'settings', :action => 'edit', :method => :get map.update_setting 'setting/:key', :controller => 'settings', :action => 'update', :method => :put
And I have to link_to_remote links: link_to_remote "Edit", :url => edit_setting_path(@setting.key), :method => :get link_to_remote "Save", :url => update_setting_path(@setting.key), :method => :put But both link will trigger the :edit action. It seems Rails ignores the :method parameter when routing. How can I map the same url with different method to different actions? Thanks! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

