Sha256: 98ef60a767a1c5e1dc9b9f46e2023f3b580d20e948230356e8f3fae5160c1f3e

Contents?: true

Size: 865 Bytes

Versions: 2

Compression:

Stored size: 865 Bytes

Contents

*******************************************************************************

Ok, enough fancy automatic stuff. Time for some old school monkey copy-pasting.

1. If you already had a User model, include the Clearance::User module now:

    class User < ActiveRecord::Base
      include Clearance::User
    end

2. Define a HOST constant in your environments files.
In config/environments/test.rb and config/environments/development.rb it can be:

    HOST = "localhost"

In production.rb it must be the actual host your application is deployed to.
The constant is used by mailers to generate URLs in emails.

3. In config/environment.rb:

    DO_NOT_REPLY = "donotreply@example.com"

4. Define root_url to *something* in your config/routes.rb:

    map.root :controller => 'home'

*******************************************************************************

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thoughtbot-clearance-0.6.0 generators/clearance/templates/README
thoughtbot-clearance-0.6.1 generators/clearance/templates/README