progfu.com

I am talking about development speed. When your application starts growing and you start adding gems, it starts to take...

makandra dev
github.com

The gem author Jonas Nicklas highlights in a Google Groups post that the release is not backwards compatible to 1...

When you have two models in a has_many, has_one or belongs_to association, the :inverse_of option in...

github.com

Installation differs slightly from older versions, please check the README.

Icon fonts like Font Awesome are infinitely scalable, look great on high-DPI displays and will give your app a...

Under certain (unknown) circumstances, Rails will give localized files an invalid content-type in the Response header. For me, after...

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

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

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

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

If some of your JavaScripts fail on Internet Explorer, but only in staging or production environments, chances are that JavaScript...

Never ever declare your associations with a string, especially when doing metaprogramming. A common mistake is something like # WRONG

The ActionMailer in Rails 2 depends on a buggy version of TMail, which sometimes inserts a blank line into the...

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

rubyforge.org

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 you want to update some records with boolean fields in a migration, always remember to set your values with...

In a nutshell: return statements inside blocks cause a method's return value to change. This is by design (and...

Tempfiles get deleted automatically With the the ruby Tempfile class you can create temporary files. Those files only stick around...

Note: Instead of using the method in this card, you probably want to use ActiveType's nested attributes which is...

Sometimes you need to look at the filter chain in specs. You can do it like that on Rails 2...

logicalfriday.com

How delayed jobs can make your after_save callbacks execute before the record is saved.

github.com

In Selenium features the server and client are running in separate processes. Therefore, when mocking time with a tool like...