My log of crap that happens while I code.


Devise, authenticate_user! and redirect

While working with a new rails project for my current employer I hooked up Devise for authentication. I wanted all redirects to for authenticate_user! to be sent to /login. Getting this to work was relatively easy and here’s the files I had to edit.

This was all I need to do to get the redirects working.

  1. adamtrepanier posted this