search for: end_control

Displaying 1 result from an estimated 1 matches for "end_control".

Did you mean: dnd_control
2006 Apr 04
5
getting the value of a form select
...roller < ApplicationController def list @active_client = session[:active_client] @clients = Client.find_all.collect {|c| [ c.name, c.id ] } end def change_active_client session[:active_client] = params[:client] redirect_to(:action => "list") end end ------END_CONTROLER------- ------START_VIEW----------- <%= form_tag (:action => "change_active_client")%> <%= select(:client, :id, @clients) %> <input type="submit" value="Change" /> <%= end_form_tag%> content of the session: <%=h(session[:active_cli...