Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby

missgeekbunny
missgeekbunny
37,033 Points

I need help installing things to my RoR application

I'm trying to follow the lessons of the Ruby on Rails program but making some changes to make something I want to make for myself and I keep finding that my application falls apart any time I try to install anything I am not writing. So I can't install devise(I don't even get close to the same messages that are in the videos) and I can't install any other program like one I was looking at called forum monster. I can get them in the gem file and bundle it but when I go to run installs it just talks about missing the ORM. I know in programming you work to figure things out for yourself but I just feel like I'm too new at this to figure it out alone so any hints or advice? I run on a macbook pro if that makes any difference at all.

ETA: This is what my console is telling me when I try to run rails generate devise:install

/usr/local/rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/lib/devise/rails/routes.rb:448:in `raise_no_devise_method_error!': Install does not respond to 'devise' method. This usually means you haven't loaded your ORM file or it's being loaded too late. To fix it, be sure to require 'devise/orm/YOUR_ORM' inside 'config/initializers/devise.rb' or before your application definition in 'config/application.rb' (RuntimeError)

1 Answer

missgeekbunny
missgeekbunny
37,033 Points

Man this must be tricky if no one is responding. Running diagnostics on all things on my computer so we'll see if I can get to a point to fix this.

ETA: Aha so I ran diagnostics and fixed everything that wasn't as it should have been according to the defaults (largely permissions). Somewhere in there things started working again.