Using text-transform: uppercase - especially on form labels - can cause you serious headaches in Selenium tests. Sometimes the web driver...
Since we are migrating from our homegrown mixins.sass and helpers.sass to Compass, here is a list of all the mixins...
The asset pipeline (which is actually backed by sprockets) has a nice feature where templates ending in .jst are compiled...
When two elements with display: inline-block are sitting next to each other, whitespace between becomes a space character.
A list of FontAwesome icons in the form of copyable Unicode characters or HTML entities. You might prefer to use...
In order to keep the controllers directory tidy, we recently started to namespace controllers. With the :controller option you can...
When you're writing migrations that do more than changing tables (like, modify many records) you may want some output...
CSS3 comes with new unit rem. It works like em but it is always relative to the element instead of...
I had some problems with Git and the file spec/fixtures/ČeskýÁČĎÉĚÍŇÓŘŠŤÚŮÝŽáčďéěíňóřšťúůýž. After pulling the latest commits, it would show that...
When two classes implement the same behavior (methods, callbacks, etc.), you should extract that behavior into a trait or module...
In Rails 5 you can say: ApplicationController.render( :template => 'users/index', :layout => 'my_layout', :assigns => { users: @users } ) If a Request Environment is...
Simply give the select helper an option :disabled, passing either a single value or an array. You need to specify...
Exception notifications contain a lot of information: Backtraces, HTTP headers, etc. exception_notification tries its best to format this wall...
For websites that don't do JavaScript rendering on the client, it's best practice to put script tags at...
Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...
The ipad onscreen keyboard changes position:fixed style to position:static that misplaces those elements and you'll have problems...
Next time you have to do more than trivial CSS changes on a project, you probably want to have live...
1. Saving files to a directory that is not shared between deploys or servers If you save your uploads to...
Our development process makes us deploy very often. As the number of releases grows, junk clogs up the hard drive...
New WYSIWYG editor that claims to be lighter and prettier than TinyMCE and CKEditor. Has some Rails integration, too.
If you want a widget for awesome that runs a command regularly (every X seconds) and puts the output into...
You have multiple options: Just don't have a type column. All STI magic will be disabled automatically.
When you need to find out in which kind of spec you are during run-time, it's definitely possible...
This trick might be useful to implement more complicated directives in AngularJS. I needed it to do drag'n'drop...