pivotallabs.com

One of the thornier problems in our workflow is knowing when assets are delivered from the designer and keeping them...

apidock.com

Note: ActiveRecord::Base#becomes has a lot of quirks and inconsistent behavior. You probably want to use ActiveType.cast instead.

There is a nasty bug in all version of Rails 2 and some versions of Rails 3.x where two...

At times, it might be unavoidable to have different CSS rules for Internet Explorer than for sane browsers. Using Sass...

When using ActionMailer, you can set an array of email addresses as recipients. If this array is generated by e.g...

redmine.org

Phillip Koebbe from Ruby on Rails suggested inserting following code between the "bootstrap" and "initialize" sections of enviroment.rb. This hack...

makandra dev

The information in this card is only relevant for Rails 2.3-era apps. This note gives a quick introduction into...

Sometimes you can make your life easier by not allowing a record attribute to be changed after the record was...

devstructure.com

blueprint is DevStructure’s workhorse tool that looks inside popular package managers, finds changes you made to configuration files, and...

Cucumber scenarios that are tagged with @javascript so they run with Selenium are very slow. You might not want to...

makandra dev
github.com

The shell variable PS1 holds your bash prompt. You might want to change it to serve your needs best. Here...

Pie sometimes does not properly redraw elements upon changes. This often happens when the change comes from somewhere further up...

The attached RSpec matcher exist_in_database checks if a given record still exists in the database and has not...

Depending on where you live, different rules are used to determine the number of the week and a weekday. You...

If you have the following deprecation warning after upgrading to rails >= 2.3.10 DEPRECATION WARNING: The :overwrite_params option is deprecated...

When working with large Sass files you will notice that the first request after a change to a Sass file...

You will occasionally need to clean out your database while keeping the schema intact, e.g. when someone inserted data in...

When you click a link or a press a button on a Selenium-controlled browser, the call will return control...

When you set both a record's association and that association's foreign key attribute, Rails does not realize you...

rhnh.net

In order to cover some edge cases you rarely care about, Range#include? will become very slow in Ruby 1.9...

songit.posterous.com

RubyGems 1.6.0 has undergone some changes which may cause Rails 2.x applications to break with an error like this...

makandra dev
innig.net

If you want to get a deep understanding of how closures, blocks, procs & lambdas in Ruby work, check out the...

makandra dev

If you use a form (or form fields) multiple times inside one view, Rails will generate the same id attributes...

adobe.com

Flash movies (.swf files) can talk with Javascript code embedded in the same HTML page. There are two ways to...