Displaying 3 results from an estimated 3 matches for "add_trip".
Did you mean:
add_ri
2006 May 20
3
in_place_editor and no access to value
...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.com/.
2006 Jun 09
0
partials and rjs
...y_area" style="cursor:pointer;">New</span>
<%= in_place_editor ''add_country_area'',
:url => {:action => ''add_country_area''},
:with =>
"Form.serialize(form)+''&country=''+document.add_trip.country.selectedIndex"
%>
</span>
...
----------
This creates a drop down list of areas within a country. Now I have an
in_place_editor field (see above), that once you type in a new value and
press submit, calls the following method in the controller:
def add_country_area...
2006 May 17
0
in place editor value of text box
...n''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 just grab
params[:value] it doesn''t recognize that either.
Thanks
Brian
--
Posted via http://www.ruby-forum.com/.