Just to save people 1hr of head banging:

This DOES NOT WORK: (data is submitted to ApplicationController/index!!!
<%= observe_field :friendship_accessibility, :url => 
friendship_url(friendship),
:on => :click, :with => :accessibility %>


This works: (all options are compulsory)
<%= observe_field :friendship_accessibility,
:url => {:controller => 'friendships', :action => 'update', :id => 
friendship},
:on => :click, :with => :accessibility, :method => :update %>


Is that a bug? Why can't the observe_field and Rails routing mechanism 
recognize the restful route?
-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to