I defined a partial and put an observe_field in this partial, but it
doesn''t invoke the action when the field changed, this is the code:
<td>
<%=select_tag ''project_version'',
options_for_select(@project_versions)%>
<%= observe_field :project_version,
:update=>''view_name'',
:url=>{:action=>''update_view_name''},
:with=>"''project_selection=''+$(''project_selection'').getValue()+''&project_version=''+encodeURIComponent(value)"%>
</td>
<td id="view_name"><%=
render(:partial=>''view_name'',:layout=>false)
%></td>
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---