If you’d like to add a plugin to a Rails app, follow these easy steps.
- Make sure you have bootstrap installed in your Gemfile.
2. Don’t forget to bundle install in your Terminal!!
- There are a ton of options to choose from depending on what you’re looking for! I’ll demo installing a collapse, which is a plugin for easy toggling.
Copy all that yummy code and add it to the view file of your choice! I added it to one of my show pages where I wanted to view multiple models at once.
Using partial files in all my views, I was able to create local variables and render many views on one page with the help of this lovely plugin!