Sha256: 406f4450bdbdcd20881d5e2cddd1aa9d02671669f5e04e157efad1a2834d1399

Contents?: true

Size: 1.33 KB

Versions: 6

Compression:

Stored size: 1.33 KB

Contents

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

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

1. For any other file(s) that you already had and didn't want to overwrite, add 
the corresponding Clearance module. They are namespaced exactly like the 
directory structure of a Rails app.

Application controller example:

    class ApplicationController < ActionController::Base
      include Clearance::App::Controllers::ApplicationController
    end

User model example:

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

User test example:

    class UserTest < ActiveSupport::TestCase
      include Clearance::Test::Unit::UserTest
    end

2. You need to define 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.

In config/environment.rb:

    DO_NOT_REPLY = "donotreply@example.com"

3. Clearance depends on root_url, so please make sure that it is defined to
*something* in your config/routes.rb:

    map.root :controller => 'home'

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

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
jeffrafter-clearance-0.5.4 generators/clearance/templates/README
kellyfelkins-clearance-0.5.6 generators/clearance/templates/README
thoughtbot-clearance-0.5.2 generators/clearance/templates/README
thoughtbot-clearance-0.5.3 generators/clearance/templates/README
thoughtbot-clearance-0.5.4 generators/clearance/templates/README
thoughtbot-clearance-0.5.6 generators/clearance/templates/README