When is this useful? When both parent and child elements have borders, with this technique you don't get two...
If your application has forms to edit string fields, you probably want to strip the entered values (remove whitespace from...
“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...
Richard Powell presents a collection of CSS styling advice that's mainly taken from SMACSS. Although at makandra we're...
This is for you if you get the following strange error from the state_machine gem: undefined method `-' for #
Turbolinks makes following links in your web application faster. Instead of letting the browser recompile the JavaScript and CSS between...
The linked slidedeck holds many tips, of which I list the most interesting to me below DATA and END
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...
Ruby's mathn library changes Fixnum division to work with exact Rationals, so 2 / 3 => 0 2 / 3 * 3 => 0...
Many jQuery plugins suffer from a good plugin architecture. When you write jQuery plugins you should use the plugin pattern...
If you get this warning on your local machine one of these steps might help: Rebuilt the gem with the...
Example task: Multiply the table holidays between several stages. Open two terminals: shell-for stage_1 shell-for stage_2...
If some of your JavaScripts fail on Internet Explorer, but only in staging or production environments, chances are that JavaScript...
This didn't work for me. Seems display is already taken in Machinist. # in spec/support/blueprints.rb Partner.blueprint do company_name
Never ever declare your associations with a string, especially when doing metaprogramming. A common mistake is something like # WRONG
You're using exception_notification and want to send exception mails within a model. Here's how. The ExceptionNotifier class...
Browsing the git stash is a bit tricky. Here is how to see the changes without applying them:
This describes how to migrate an existing cucumber test suite to Spreewald. Add the gem Include spreewald into your cucumber...
Cucumber_rails' old-school web-steps have been deprecated for a while, urging developers to write high-level step definitions...
There is no reason to leave trailing whitespace characters in your project's files, so don't add any.
TL;DR Avoid before(:context) (formerly before(:all)), use before(:example) (formerly before(:each)) instead. If you do use before...
to_file has been removed in Paperclip 3.0.1. Instead of using File to access Paperclip storage objects (like this: File.read...