Routing method problem

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!