search for: project_selector

Displaying 2 results from an estimated 2 matches for "project_selector".

2006 Nov 04
4
how to get observe_field to use GET method?
...GET method (To work with a RESTful controller). <%= link_to_remote("Test", :update => "main", :url => { :controller => "projects", :action => "show", :id => "3"}, :method => "get" ) %> <%= observe_field("project_selector", :update => "main", :url => { :controller => "projects", :action => "show"}, :with => "''id=''+escape(value)") %> I have successfully set-up a link_to_remote so that it works (although I had to replace the project_p...
2006 Oct 18
1
observe_field, GET method and RESTful controllers
...estful rails and have come across a quandry with observe_field. I basically want the observe field to call a show action on a restful controller. However I am unable to do so because I cannot get the damn thing to use the get request properly. If I use the following: <%= observe_field("project_selector", :update => "project_selector_div", :url => project_path, :with => "''id=''+escape(value)") %> then the POST method is used and the controller thinks I am trying to create a new record. If I do the following: <%= observe_field("proj...