search for: add_country_area

Displaying 4 results from an estimated 4 matches for "add_country_area".

2006 May 20
3
in_place_editor and no access to value
.... This looks like the examples that I have seen so I am not sure what I am doing wrong. If I take off the :with part, I get a value parameter passed to my controller, but then I can''t figure out how to get the country id passed like I need to. <%= in_place_editor ''add_country_area'', :url => {:action => ''add_country_area''}, :with => "''value=''+escape(value)+''country=''+document.add_trip.country.selectedIndex" %> Thanks for the help Brian -- Posted via http://www.ruby-forum.co...
2006 Jun 09
0
partials and rjs
...ntry_area.selectedIndex, {asynchronous:true, evalScripts:true});" } %> <-- form containing partial --> <form> <span id="country_area"> <%= render :partial => ''country_area'' %> </span>&nbsp; <span id="add_country_area" style="cursor:pointer;">New</span> <%= in_place_editor ''add_country_area'', :url => {:action => ''add_country_area''}, :with => "Form.serialize(form)+''&country=''+document.add_tr...
2006 May 17
0
in place editor value of text box
...value". In my in place editor tag, I want to use the value of that text field as one of the parameters passed to my action. I''m trying to use form.value.value but that doesn''t work (it doesn''t recognize form.value.value) <%= in_place_editor ''add_country_area'', :url => {:action => ''add_country_area'' }, :with => "''descr=''+form.value.value+''&country=''+document.add_trip.country.selectedIndex" %> How do I access this value in my controller? If I try to...
2006 Jun 15
0
return from controller not evaluating script
I am using this in my controller to reload the country_area partial in my form def add_country_area render :update do |page| page[:country_area].reload end end << in form >> <span id="country_area"> <%= render :partial => ''country_area'' %> </span>&nbsp; << partial _country_area.rhtml >> &lt...