search for: end_controler

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

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_clien...