Skip to content

Instantly share code, notes, and snippets.

@ckybonist
Forked from seabre/devise_login_rails_console.rb
Last active August 23, 2021 08:42
Show Gist options
  • Select an option

  • Save ckybonist/622fabfe3febcd1c28f4db4ca7846b51 to your computer and use it in GitHub Desktop.

Select an option

Save ckybonist/622fabfe3febcd1c28f4db4ca7846b51 to your computer and use it in GitHub Desktop.
Devise Login Through Rails Console
ApplicationController.allow_forgery_protection = false
app.post('/sign_in_path',
{ ':user_model': { 'email': 'users@email.com', 'password': 'plain_text_password' } })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment