search for: test_action

Displaying 2 results from an estimated 2 matches for "test_action".

2007 Feb 12
6
Specs for Ajax partials with unicode characters
...c related... I''ve got an app with an RJS view that updates a div in a page with the contents of a partial. The partial contains a non-ascii character namely a pound sign. I set up a simple test app with this RJS view: page.replace_html("test_div", :partial => "test_action") and this _test_action.rhtml: <p>?500</p> Now this spec fails: require File.dirname(__FILE__) + ''/../../spec_helper'' context "Given a request to render view_test/test_action" do setup do render ''view_test/test_...
2006 May 09
1
Session mgmt. bug - ActiveRecord & MemoryStore session store
...X as a descendant of ActiveRecord::Base somewhere (you could just use an existing object and add an attr_accessor to it, of course), here''s what you would put in the controller: 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...