火曜日, 10月 27, 2009

script/console内でヘルパーをテストする方法



Logging Rails activity in script/console

Using The Rails Console for Controller Testing
Firing a controller's action from the console
Accessing session data using session_id
@user=CGI::Session::ActiveRecordStore::Session.find_by_session_id(@session_id).data[:user]

0 件のコメント: