This project is archived and is in readonly mode.
[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
-
josh January 2nd, 2009 @ 04:08 AM
- Milestone cleared.
- State changed from new to open
- Assigned user set to josh
-
Repository January 2nd, 2009 @ 04:28 PM
- State changed from open to resolved
(from [f90160c6c1ec457f0b4b01c6fef78146271bc070]) Fixed bug where calling app method from console would raise ArgumentError [#1629 state:resolved]
Signed-off-by: Joshua Peek josh@joshpeek.com http://github.com/rails/rails/co...
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
- 1629 [PATCH] Fix for app method in console (from [f90160c6c1ec457f0b4b01c6fef78146271bc070]) Fixed b...