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


How do you incorporate Bootstrap styles into Devise login, without losing the functionality of the login?

I am trying to make my user login form match my contact us form. When I style the login form using similar bootstrap and CSS rules, it looks great, but stops functioning properly. A user can still login, but it no longer routes to the logged in home screen view and a logged in admin cannot access the content as they should. If I don't add the styling to the login it functions appropriately. I've been working on this for a while and have absolutely no idea why adding styles is causing this problem. Here is a link to my github repo for this branch of my project: https://github.com/allicn03/new_bike_app/commit/9a577a5ef4d0a979f2e6130c4611afb45db22f65

1 Answer

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

It seems like in new.html.erb you are nesting your form_for inside a <form> tag, so what you get is most likely a form inside a form. Try removing it and see if this helps.