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
Prosper Hughie
5,086 PointsProblems 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...
George Offley
Courses Plus Student 7,386 PointsAlso have you set a root path in your routes.rb file??
2 Answers
Prosper Hughie
5,086 Pointsif 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?
George Offley
Courses Plus Student 7,386 PointsWhat is the error you're getting??
Prosper Hughie
5,086 PointsSeems to working all of the sudden... i didn't have my mamp server running, could that have been the issue?
George Offley
Courses Plus Student 7,386 PointsIf 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
Prosper Hughie
5,086 PointsThe rest of the site worked without mamp. But i am not sure what webrick is so i can't answer that..
George Offley
Courses Plus Student 7,386 PointsWEBrick 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.
Prosper Hughie
5,086 PointsI 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.
George Offley
Courses Plus Student 7,386 PointsChalk it up to gremlins
George Offley
Courses Plus Student 7,386 PointsGeorge Offley
Courses Plus Student 7,386 PointsHave you tried running
rake routesin your terminal to see what routes you have available after installing devise?