search for: normalize_session

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

2006 Jan 11
1
handling AR object in multistage forms
in a multi-stage form, what is the proper way for handling the passing of the object thru each step ? If i have a database called events, and my controller looks like step = @params[:step] || 1 if step == 1 @event = Event.new @event = @session[:event] if @session[:event] elsif step == 2 @event = Event.new @event = @params[:event] elsif step == 3 @event = Event.new @event =