search for: specificcontrol

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

2006 Apr 04
5
getting the value of a form select
...ient''s ID in the session then returns the control to the list action. My problem is that when I try to output the value stored in the session, I get anything but what I expected... What am I missing? the simplified version of my code goes like this: ------START_CONTROLER------- class SpecificController < 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...