Forum: Ruby on Rails in place editor value of text box

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Brian N. (Guest)
on 2006-05-17 06:06
When using the in place editor, it creates a form with a text field
having the name "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 just grab
params[:value] it doesn't recognize that either.

Thanks
Brian
This topic is locked and can not be replied to.