mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Wording.
This commit is contained in:
parent
9fe0cb4954
commit
14aedc416a
1 changed files with 1 additions and 6 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue