Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[PATCH] Fix for app method in console

#1629

Typing app in the Rails console should return an instance of ActionController::Integration::Session, but currently this raises an ArgumentError. Passing in an instance of AC::Dispatcher when instantiating the fake session fixes this issue.


lappy-jr:ando_plus_plus david$ script/console
Loading development environment (Rails 2.3.0)
>> app
ArgumentError: wrong number of arguments (0 for 1)
	from /Users/david/Documents/Rails/ando_plus_plus/vendor/rails/railties/lib/console_app.rb:19:in `initialize'
	from /Users/david/Documents/Rails/ando_plus_plus/vendor/rails/railties/lib/console_app.rb:19:in `new'
	from /Users/david/Documents/Rails/ando_plus_plus/vendor/rails/railties/lib/console_app.rb:19:in `new_session'
	from /Users/david/Documents/Rails/ando_plus_plus/vendor/rails/railties/lib/console_app.rb:11:in `app'
	from (irb):1

Reported by David Demaree · December 24th, 2008 @ 04:03 PM

State: resolved
Milestone: none
Assigned to: josh josh
Importance: none

Activity

  1. josh
    josh
    • Milestone cleared.
    • State changed from new to open
    • Assigned user set to josh

    January 2nd, 2009 @ 04:08 AM

  2. Repository
    Repository
    • State changed from open to resolved

    (from [f90160c6c1ec457f0b4b01c6fef78146271bc070]) Fixed bug where calling app method from console would raise ArgumentError [#1629 [PATCH] Fix for app method in console state:resolved]

    Signed-off-by: Joshua Peek josh@joshpeek.com http://github.com/rails/rails/co...

    January 2nd, 2009 @ 04:28 PM