mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Since script/generate devise_install is a required step, move README over there.
This commit is contained in:
parent
73c0a10af5
commit
dc5724c888
3 changed files with 4 additions and 13 deletions
|
@ -4,18 +4,11 @@ class DeviseGenerator < Rails::Generator::NamedBase
|
|||
|
||||
def manifest
|
||||
record do |m|
|
||||
# Model
|
||||
m.directory(File.join('app', 'models', class_path))
|
||||
m.template 'model.rb', File.join('app', 'models', "#{file_path}.rb")
|
||||
|
||||
# Migration
|
||||
m.migration_template 'migration.rb', 'db/migrate', :migration_file_name => "devise_create_#{table_name}"
|
||||
|
||||
# Routing
|
||||
m.route_devise table_name
|
||||
|
||||
# Readme
|
||||
m.readme "README"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -7,6 +7,8 @@ class DeviseInstallGenerator < Rails::Generator::Base
|
|||
|
||||
m.directory "config/locales"
|
||||
m.file "../../../lib/devise/locales/en.yml", "config/locales/devise.en.yml"
|
||||
|
||||
m.readme "README"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -3,11 +3,7 @@
|
|||
|
||||
Some setup you must do manually if you haven't yet:
|
||||
|
||||
1. Run devise install generator:
|
||||
|
||||
ruby script/generate devise_install
|
||||
|
||||
2. Setup defaut url options for your specific environment. Here is an
|
||||
1. Setup default url options for your specific environment. Here is an
|
||||
example of development environment:
|
||||
|
||||
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
|
||||
|
@ -15,7 +11,7 @@ Some setup you must do manually if you haven't yet:
|
|||
This is a required Rails configuration. In production is must be the
|
||||
actual host of your application
|
||||
|
||||
3. Ensure you have defined root_url to *something* in your config/routes.rb:
|
||||
2. Ensure you have defined root_url to *something* in your config/routes.rb:
|
||||
|
||||
map.root :controller => 'home'
|
||||
|
Loading…
Reference in a new issue