Haml 3.1.2 displays single quotes in FormBuilder#text_ field html escaped. You may see something like that:

In theory you can take any scope and extend it with additional joins or conditions. We call this chaining scopes...

ActiveModel::Errors is used to handle validation errors on Rails objects. If you inspect an instance, it feels like a...

Around will not happen until after a feature's Background has been processed. Use Before and After to avoid that...

If you require your Rails models manually, pay attention to the path you use. Unless you have...

makandra dev
github.com

Show failing specs instantly. Show passing spec as green dots as usual. Configuration: # spec/spec.opts (.rspec for rspec 2) --require rspec/instafail...

Why is this useful? You can have a background image on the same element, overlaying it with a transparent gradient...

...border | With box-shadow | | border: 1px solid red | box-shadow: inset 0 0 0 -1px red | | border-top: 1px solid red | box-shadow: inset 0 1px 0 0 red...

...border-right: 1px solid red | box-shadow: inset -1px 0 0 red | | border-bottom: 1px solid red | box-shadow: inset 0 -1px 0 0 red | | border-left: 1px...

If your application has forms to edit string fields, you probably want to strip the entered values (remove whitespace from...

makandra dev
github.com

The (admittedly crazy) goal of this Gem is to be able to format/split all phone numbers in the world.

blog.codeclimate.com

“Fat models” cause maintenance issues in large apps. Only incrementally better than cluttering controllers with domain logic, they usually represent...

In a Rails application, *_spec.rb files get special treatment depending on the file's directory. E.g. when you put a...

makandra dev
bitbucket.org

Makes a robust determination of a user's timezone through Javascript.

makandra dev
github.com

Richard Powell presents a collection of CSS styling advice that's mainly taken from SMACSS. Although at makandra we're...

github.com

Takes a screenshot when you call it, or when a test fails.

This is for you if you get the following strange error from the state_machine gem: undefined method `-' for #

makandra dev
github.com

Turbolinks makes following links in your web application faster. Instead of letting the browser recompile the JavaScript and CSS between...

shifteleven.com

The __END__ keyword tells Ruby where a file ends – but you don't have to stop there. Any text you...

blog.teamtreehouse.com

Randy Hoyt is presenting a way to display something (e.g. products) in a grid. It's responsive, too!

Geordi now supports our solution for running Selenium tests without having Firefox or Chrome windows popping up all over your...

Chances are, something in your project uses the mathn library, which is known to cause infinite loops when rendering the...

Ruby's mathn library changes Fixnum division to work with exact Rationals, so 2 / 3 => 0 2 / 3 * 3 => 0...

adobe.com

Holly Schinsky from Adobe shows some of Bootstrap's capabilities. The combination of explanation, screenshots and source code makes it...

markdalgleish.com

Many jQuery plugins suffer from a good plugin architecture. When you write jQuery plugins you should use the plugin pattern...