gem 'devise' error


I am trying to install Devise but I am getting this error :

gem ‘devise’, ‘~> 3.0.0.rc’

ERROR: While executing gem … (Gem::CommandLineError)

Unknown command devise,

Did you type that in the console? That line is supposed to go in your Gemfile (and then you run bundle to install any dependencies from your Gemfile that are not currently installed).

If you really want to install it without using bundler you would instead run

gem install devise --version 3.0.0.rc

Lastly, it’s unlikely you actually want that exact version - the final version of devise 3.0.0 came out some time ago (and more recent versions have also been released)


Thank you so much