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 trial

Ruby

Installing devise

I am trying to run rails generate devise: install aka install devise and it is giving me this error. I can't figure out what the problem is for the life of me. Thanks.

/usr/local/rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.5/lib/bundler/runtime.rb:216: warning: Insecure world writable dir /usr/local in PATH, mode 040777 /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.5/lib/bundler/runtime.rb:216: warning: Insecure world writable dir /usr/local in PATH, mode 040777 /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in require': /Users/mobolajioluwajana/treebook/config/environment.rb:3: syntax error, unexpected ':' (SyntaxError) root.to: 'statuses#index' ^ from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:inblock in require' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in load_dependency' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:inrequire' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.12/lib/rails/application.rb:103:in require_environment!' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.12/lib/rails/commands.rb:25:in<top (required)>' from script/rails:6:in require' from script/rails:6:in<main>'

5 Answers

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey Mobolaji Oluwajana it looks like your user model is called "Install" by accident. Try re-doing that section but passing "user" as the argument instead of install.

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey Mobolaji Oluwajana try removing the "." between "root.to" in your config/routes.rb file.

Hi, i removed it and it did not work, it is still giving me the same issues. I do have my devise.en.yml file under my locales in sublime, so i am guessing it's installed. It is just not bringing up the steps to complete the process when i run rails generate devise:install.

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Can you put up a link to your code on GitHub so I can take a look?

I re did it and figured it out. Thanks for the help.

Ok, i thought i had this figured out, but now i am having issues with the sign up page not coming up, this is my code on github:https://github.com/bolajioluwajana/treebook. Thank you for the help :-).