mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 15:28:18 -05:00
Wording.
This commit is contained in:
@@ -86,12 +86,7 @@ The generator will install an initializer which describes ALL Devise's configura
|
||||
|
||||
rails generate devise MODEL
|
||||
|
||||
Replace MODEL by the class name used for the applications users,
|
||||
It's frequently 'User' but could also be 'Admin' (if say all authenticated users are 'Admins'), etc.
|
||||
This will create a model (if one does not exist) and configure it with default Devise modules.
|
||||
You'll usually then db:migrate as the generator will have created a migration file (if your ORM supports them),
|
||||
The generator will also have configured your routes.
|
||||
Continue reading this file to understand exactly what the generator produces and how to use it.
|
||||
Replace MODEL by the class name used for the applications users, it's frequently 'User' but could also be 'Admin'. This will create a model (if one does not exist) and configure it with default Devise modules. Next, you'll usually run db:migrate as the generator will have created a migration file (if your ORM supports them). This generator also configures your config/routes.rb file, continue reading this file to understand exactly what the generator produces and how to use it.
|
||||
|
||||
Support for Rails 2.3.x can be found by installing Devise 1.0.x from the v1.0 branch.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user