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

Problems with devise

I can't seem to get devise to work for me. I followed the tutorial to a tee and it doesn't work. After i install devise i get this in my routes.rb file "devise_for :users". When that is in the file the site doesn't work. However, when i take out "devise_for :users" the site works again but i can't access the registration page or any other login pages. Any idea? I really need help...

Have you tried running

rake routes

in your terminal to see what routes you have available after installing devise?

Also have you set a root path in your routes.rb file??

2 Answers

if you mean: root to: 'statuses#index', then yes i have set a root path to my routes.rb file. I have raked the routes as well... Any other ideas?

What is the error you're getting??

Seems to working all of the sudden... i didn't have my mamp server running, could that have been the issue?

If that is what your using to rub your rails server then yes.You need that or Webrick, if your using that, to rub your rails app

The rest of the site worked without mamp. But i am not sure what webrick is so i can't answer that..

WEBrick is a low level web server that runs Rails, I believe that it's the default server. Although I think you can also use MAMP for running Rails as well, usually when you type in

rails server

You will see the name of the server you are running as the first line that comes up in your terminal. If you're not sure what server your using I'll go out on a limb and say that you are using WEBrick because that is what comes with Rails, so to answer you question, I'm not really sure what MAMP has to do with you running devise. I leave it someone smarter than I.

I don't think mamp has anything to do with my issue i was having, i don't even have localhost in my url. I shut my computer down for awhile, but other than that, i really didn't do anything different? I am at a loss for words right now.

Chalk it up to gremlins