screen shot of https://rubygems.org/gems/centering_helper

Rails 4 Gem for Centering Images and Content

When I made the gem for generating column widths last week, it was so I could avoid having to litter my code with divs to center the columns if my database contained fewer columns of data than would fill the screen width. So, of course, this week, I’ve made a gem so I don’t have […]

Screen capture from http://www.rails-dev.com/custom-view-helpers-in-rails-4

Rails 4 View Helpers for Noobs

A view helper is a little piece of reusable code that you can place into your views to reduce the amount of code you have to repeat. You’ve probably already used some, such as form helpers (form_for) or others (image_tag). It’s also possible to make your own. If there’s something you do over, and over […]