search for: test_action2

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

Did you mean: test_action
2006 May 09
1
Session mgmt. bug - ActiveRecord & MemoryStore session store
...Model code: class X < ActiveRecord::Base attr_accessor :test_attr end Controller code: public def test_action test_object = X.new session[:test_object] = test_object session[:test_object].test_attr = 5 render(:action => ''index'') end public def test_action2 puts "Value is: #{session[:test_object].test_attr}" render(:action => ''index'') end View code in index.rhtml to invoke these actions: <%= link_to("Test action", :controller => ''yourcontroller'', :action => ''test...