While you can set your own font in your terminal or other tools, it will not change the default "Monospace...
When you have two models in a has_many, has_one or belongs_to association, the :inverse_of option in...
Icon fonts like Font Awesome are infinitely scalable, look great on high-DPI displays and will give your app a...
Generally, Selenium tests use the browser to interact with the page. If it's unavailable, a timeout error is...
Around will not happen until after a feature's Background has been processed. Use Before and After to avoid that...
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...
Turbolinks makes following links in your web application faster. Instead of letting the browser recompile the JavaScript and CSS between...
Ruby's mathn library changes Fixnum division to work with exact Rationals, so 2 / 3 => 0 2 / 3 * 3 => 0...
Holly Schinsky from Adobe shows some of Bootstrap's capabilities. The combination of explanation, screenshots and source code makes it...
Browsing the git stash is a bit tricky. Here is how to see the changes without applying them:
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...
simple_format ignores Rails' XSS protection. Even when called with an unsafe string, HTML characters will not be escaped or...
Note: Modern Rails has two build pipelines, the asset pipeline (or "Sprockets") and Webpacker. The principles below apply for both...
When you work in the MySQL console and you want to see which database is used, type: SELECT database();
We frequently use the handy Paperclip Gem to manage file attachments. If you need to move the files from local...
Under certain circumstances gettext_i18n_rails will hit a near-infinite loop. This occured in Rails 2.3.5 with Haml 3.0.18...
If you have an html_safe string, you won't be able to call gsub with a block and match...
If (for some reason that you don't want to ask yourself) you need to know all classes that define...
If you want to update some records with boolean fields in a migration, always remember to set your values with...