Mobile detection for Ruby on Rails

A quick piece of code to have a mobile detection usable all over your rails application

 

Generate padding and margin classes with SASS

This is a very useful piece of code for SASS that I now use in all my projects, it automatically creates margin and padding classes, so that you can easily ajust your margins while coding directly in HTML