Skip to content

Commit

Permalink
Since script/generate devise_install is a required step, move README …
Browse files Browse the repository at this point in the history
…over there.
  • Loading branch information
josevalim committed Jan 6, 2010
1 parent 73c0a10 commit dc5724c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
7 changes: 0 additions & 7 deletions generators/devise/devise_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions generators/devise_install/devise_install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ def manifest

m.directory "config/locales"
m.file "../../../lib/devise/locales/en.yml", "config/locales/devise.en.yml"

m.readme "README"
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,15 @@

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' }

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'

Expand Down

0 comments on commit dc5724c

Please sign in to comment.