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!

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 on Rails app wont let me login

Well i have been working on a project on github. I downloaded the app and cant seem to log in to it, But it works just fine online and on others computers. I am the only person using Ubuntu, i have used different db types and none of them make a difference. Im getting no errors , it goes to a white screen says waiting for local host then reloads the sign up screen, Has any one else had anything similar

2 Answers

I'd say check your database.yml to see in which development mode you are running and if that database exists. If it exists, check if the users table has your information and add a record in if it doesn't. If it still doesn't work, check what type of access you have to this db.

oh i communicated with my back end dev and he had some stuff we needed to omit, some includes, not working with my unbuntu station. But for others who have issues loging in i would suggest trying to make a new user useing rails console

i.e. $ rails c $ User.create! email: "youremail@whatever.com", password: "password", password_confirmation "password"

then try to login with the new password and user. If your ever having issues with any thing in you database.yml make sure that your gem has the same adapter(database type i.e. mysql. pg) and is bundled. then do a

$ rake db:drop db:create db:migrate db:seed

that basically resets things and should get you were u need to go