web.archive.org

When you style multiple adjacent block elements with float: left, they will be rendered next to each other similar to...

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

When calling a Sass mixins, you usually don't need to quote arguments: +tint_article(#f21) However, when a CSS...

So you are comparing two Time objects in an RSpec example, and they are not equal, although they look equal...

rhnh.net

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

After updating your RubyGems, you will probably not be able to run Capistrano any more, but receive an error similar...

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

If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...

There are two ways to define a class method from a Modularity trait. Note that the usual caveats regarding class...

Sometimes you might want to know if an attribute is an associated object or a simple string, integer etc. You...

makandra dev
innig.net

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

MySQL's MIN and MAX functions are for aggregations only. This will not work and produce an error:

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

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

To test whether two arrays have the same elements regardless of order, you can use the =~ matcher in RSpec < 2.11...

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

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

A check if two date or time ranges A and B overlap needs to cover a lot of cases:

Note: Consider not doing this. Use form models or vanilla methods instead. The :conditions option for Rails associations cannot take...

Sometimes it is useful to define a named scope by implementing a static method with the scope's name on...

Given those modules: module A def foo; end def bar; end end module B end When you want to call...