Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMaxim Kontsevitch
25,447 PointsCant install devise
Hi, I've tried to install devise and when the terminal is opened and I wrote bundle
I did not see "Using devise" but I did saw Your bundle is compete. After that i wrote rails generate devise:install
i saw Could not find generator devise:install.
(I also tried to write gem install devise
and an older version of devise in my Gemfile. Without any success) Can someone help me with this issue? Thank in advance.
4 Answers
Brandon Barrette
20,485 PointsYou have to put devise in your gemfile. If you don't see it after bundle install, then you won't be able to install it. In your gem file
gem devise
Then
bundle install
Then
rails generate devise:install
Maxim Kontsevitch
25,447 PointsSorry, my comment is below that post.
Maxim Kontsevitch
25,447 PointsThank you. But I still do not see devise after bundle install. If I write gem I see the devise and the version. Maybe I should transform the gem list to the bound install, but how? Thank's again. Here is my Gemfile source 'https://rubygems.org' gem 'rails', '4.0.2' gem 'sqlite3' gem 'devise' group :assts do gem 'sass-rails', '~>3.2.3' gem 'coffee-rails', '~> 3.2.1' gem 'uglifier', '>= 2.3.3 'gem 'coffee-rails', '~> 4.0.1' gem 'ugilifer', '>= 1.0.3' end gem 'jquery-rails' '3.0.4' gem 'turbolinks' '2.0.0' gem 'jbuilder', '~> 1.5.3' group :doc do gem 'sdoc' '0.3.20', require: false end
Brandon Barrette
20,485 PointsI'd avoid using rails 4, don't know if devise is stable for it yet. I'd do some research.
Also check out their install instructions here: https://github.com/plataformatec/devise
Maxim Kontsevitch
25,447 PointsThank's a lot! I'm checking this...And I'm using rails 4.0.2. Do you know how can I install rails 3 with rvm? Thank's again
Maxim Kontsevitch
25,447 PointsThank's a lot! I'm checking this...