This project is archived and is in readonly mode.

#1629 ✓resolved
David Demaree

[PATCH] Fix for app method in console

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

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

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Referenced by

Pages