The default configuration of Rails disables CSRF protection in tests. If you accidentally forget to send the CSRF token for...

Working with lists in Javascript is painful because the native Array class is so poorly designed. One way to reduce...

Using text-transform: uppercase - especially on form labels - can cause you serious headaches in Selenium tests. Sometimes the web driver...

makandra dev
compass-style.org

Since we are migrating from our homegrown mixins.sass and helpers.sass to Compass, here is a list of all the mixins...

tjvantoll.com

Did you know you can color your line-throughs or underline, or make them wavy like spell-checkers do?

speakerdeck.com

Awesome slide deck about taking liberties with design requirements in order to keep the CSS simple.

github.com

The asset pipeline (which is actually backed by sprockets) has a nice feature where templates ending in .jst are compiled...

makandra dev

For all late night coders: The program "redshift" changes your monitors' white balance according to your position on the planet...

fortawesome.github.io

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...

snook.ca

CSS3 comes with new unit rem. It works like em but it is always relative to the element instead of...

hagenburger.net

An opinion how to implement BEM. I don't agree with all of Nico's choices, but I applaud his...

Ruby's private keyword might do a lot less than you think. "private" does not apply to class methods defined...

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...

Box shadows are awesome. Unfortunately they are also very costly to render. You will rarely notice the rendering time on...

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...

makandra dev

Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...

makandra dev

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...

This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...

makandra dev
imperavi.com

New WYSIWYG editor that claims to be lighter and prettier than TinyMCE and CKEditor. Has some Rails integration, too.

Back in the old days, we couldn't do something like that: .foo { position: absolute; bottom: 0; /* This was bad...