Skip to content

Instantly share code, notes, and snippets.

@seabre
Created June 1, 2012 20:51
Show Gist options
  • Select an option

  • Save seabre/2855072 to your computer and use it in GitHub Desktop.

Select an option

Save seabre/2855072 to your computer and use it in GitHub Desktop.

Revisions

  1. seabre created this gist Jun 1, 2012.
    3 changes: 3 additions & 0 deletions devise_login_rails_console.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    ApplicationController.allow_forgery_protection = false

    app.post('/whatever_my_user_model_is/sign_in', {"whatever_my_user_model_is"=>{"email"=>"users@email.com", "password"=>"users_password"}})