how to make a devise model

Hello,

I need to do this rails generate devise model

How can I do this ?

I tried tools > rails model but then I could not find a way to make a devise model.

Roelof

3 comments
Comment actions Permalink

1. Make sure that gem is installed. Gemfile must contain line
      gem 'devise'

  if gem is not intstalled execute command
      bundle install
  (Tools -> Bundler -> Install)

2. Run generator: Tools -> Run Rails Generator. Type 'devise'

0
Comment actions Permalink

That the way you can do rails generate devise:install.

What I m looking for is a way to do rails generate devise model User

Roelof

0
Comment actions Permalink

Tools -> Run Rails Generator. Type 'devise'.  Enter. Then type name of your model 'User'

0

Please sign in to leave a comment.