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

What's the best way to create a login modal using bootstrap 3 and RoR 4?

I'm working on an application and I'd like to create a login that triggers a popup modal that gives the user the option to login or create an account (similar to this one for Birchbox https://www.birchbox.com - when you click "LOGIN" the box is triggered).

I've been reading online about box modals but a lot of what I'm reading seems to be pretty out of date. The best instructions I've found so far is this bootstrap modal (the 1st one listed is fine): http://jschr.github.io/bootstrap-modal/

I've set up a user model, sessions controller etc, I'm just wondering what the best practices are for creating a box modal for the login and how the user model/forms for logging in and signing up I've already set up should relate to the modal.

Thanks so much!