How to set session variables with app.get() in Ruby on Rails console?

Posted by Vikrant Chaudhary on Stack Overflow See other posts from Stack Overflow or by Vikrant Chaudhary
Published on 2010-06-11T04:45:51Z Indexed on 2010/06/11 4:52 UTC
Read the original article Hit count: 313

Filed under:

How can I manually set session while calling app.get() in script/console?

For example I want to access an authorised page, but it always redirects me to sign-in page. How can I set the session before calling app.get() so that I can make an authorised call to that page?

© Stack Overflow or respective owner

Related posts about ruby-on-rails