Wednesday, October 10, 2012

Setting up Devise with your Rails 3 application

The following tutorial provides probably the easier and simplest method for setting up a rail 3 web app using Devise authentication that I've seen. However, I'd additionally add that under your app setting up at config/routes.rb the following:
 default_url_options :host => "localhost:3000"

 or at least you'd want to set your default_url_option to something initially valid. Otherwise, you'd get a routing error.

No comments:

Post a Comment

A long time

    The years have passed.  Life presents all the new challenges and stresses.   I am thinking of the Ship of Theseus and re-examining this ...