-
Notifications
You must be signed in to change notification settings - Fork 1
/
NOTES FOR DEVISE
executable file
·44 lines (30 loc) · 1.58 KB
/
NOTES FOR DEVISE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Warning: Running `gem pristine --all` to regenerate your installed gemspecs (and
deleting then reinstalling your bundle if you use bundle --path) will improve t
he startup performance of Spring.
[Simple Form] Simple Form is not configured in the application and will use the
default values. Use `rails generate simple_form:install` to generate the Simple
Form configuration.
create config/initializers/devise.rb
create config/locales/devise.en.yml
Some setup you must do manually if you haven't yet:
1. Ensure you have defined default url options in your environments files. Her
e
is an example of default_url_options appropriate for a development environm
ent
in config/environments/development.rb:
config.action_mailer.default_url_options = { host: 'localhost', port: 300
0 }
In production, :host should be set to the actual host of your application.
2. Ensure you have defined root_url to *something* in your config/routes.rb.
For example:
root to: "home#index"
3. Ensure you have flash messages in app/views/layouts/application.html.erb.
For example:
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>
4. If you are deploying on Heroku with Rails 3.2 only, you may want to set:
config.assets.initialize_on_precompile = false
On config/application.rb forcing your application to not access the DB
or load models when precompiling your assets.
5. You can copy Devise views (for customization) to your app by running:
rails g devise:views