Rails 3 - How can you get access to Devise's current_user in the IRB console?
问题 I'm doing some design/debugging in IRB and need to login a user and then be able to use current_user in my efforts. From Brian Deterling's answer to another question, I have been able to successfully login and access a page response with this sequence: >> ApplicationController.allow_forgery_protection = false >> app.post('/sign_in', {"user"=>{"login"=>"some-login-id", "password"=>"some-password"}}) >> app.get '/some_other_path_that_only_works_if_logged_in' >> pp app.response.body NOTE: If you