I use render in a view page like this:

<% form_for :project do |form|  %>
 <table>
     <tr>
  <td>
  <%=
  select_tag:project_selection,options_for_select(@project_names)
  %>
  <%=
  observe_field :project_selection,
    :frequency => 0.5,
    :update => 'project_version_ajax',
    :url => {:action => 'update_project_selection'} %>
  </td>
    </tr>
    <div id='project_version_ajax'>
  <%= render :partial=>'project_version' %>
    </div>
 </table>

<% end %>

In update_project_selection controller:

def update_project_selection
  ...
  render :partial=>'project_version'
end

when the select box changed its value, the controller is invoked but the
_project_version.html.erb doesn't update.
-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to