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

bonsaiden.github.com

JavaScript Garden is a growing collection of documentation about the most quirky parts of the JavaScript programming language. It gives...

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

When you need to insert many records into the same table, performance may become an issue. What you can do...

You can find ActiveRecord models by using a Range as its conditions: User.scoped(:conditions => { :id => 3..5 }) This will generate...

track down warnings and to see failing specs immediately or to get an overview of the core...

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

Note: For PostgreSQL you should use advisory locks. For MySQL we still recommend the solution in this card.

web.archive.org

When you have a Cucumber step like Then I should see "Did you see those \"quotation marks\" over there...

On 32bit systems, the maximum representable Time is 2038-01-19 03:14:07 in UTC or 2038-01-19...

makandra dev

This tool is used on our application servers (and called when deploying) but it also works locally. Just call dumple...

The code below shows a method #validate which uses Nokogiri to validate an XML document against an XSD schema. It...

Note that this sounds good but is not good at all when hooking tasks on cap deploy (see this article...

When you use the send_file method to send a local file to the browser, you can save resources on...

When you try to remove a non-existing index using remove_index, the migration will incorrectly pass without an error...

This might be due to AppArmor denying the MySQL server access to most of the filesystem. You can instead use...

There are times when you need to send SQL to the database, like this: def self.some_count(field) field = connection.quote...

When defining a trait using the Modularity gem, you must take extra steps to define constants to avoid caveats (like...

opensoul.org

I love ETags, but there’s something that annoys me: most implementations revolve around pulling a record out of a...

Are you adding a "Then show me the page" and re-run Cucumber whenever there is a failing scenario? Don...

Find-as-you-type boxes are usually built by observing changes in a text field, and querying the server via...

Update: This trick probably isn't very useful anymore in Ruby 2.x. The Ruby GC has improved a lot...