Tag Archives: Partials

Adding a partial in Rails

Sometimes you just need to repeat the same code across the site and whilst it’s great to have it in the application.html.erb file it can make it look a little messy… that’s where partials come in. A partial is basically a part of your code you want to reuse and here’s how to do it.… Read More »