When your cucumber features grow massively over time, the test execution can take a lot of time.

Soon after having written our shell-for script, we wanted to easily get dumps of our productions machines, too. This...

makandra dev
github.com

After having written useful scripts into makandra notes for a long time, we’ve now tied them into a powerful...

weblog.rubyonrails.org

Asset pipeline, HTTP streaming, jQuery as default framework, auto-reversable migrations, identity map for ActiveRecord. Ruby 1.8.x support will...

You know that you can collect an array as groups using in_groups or in_groups_of. Maybe you want...

If you want to play music or sounds from a browser, your choice is to use either Flash or the...

Validations that need to access an associated object may lead to some trouble. Let's exemplify that using this example...

Occasionally you need to do something directly on the server -- like having all records recalculate something that cannot be done...

thrivingkings.com

An alert alternative for jQuery that looks good. Apprise is a very simple, fast, attractive, and unobtrusive way to communicate...

Ruby comes with a class BigDecimal which you can use for arbitrary precision arithmetic. You should use BigDecimal instead of...

When storing floating-point numbers such as prices or totals in an SQL database, always use a DECIMAL column. Never...

When deploying an application with "cap deploy" by default [1] you only deploy your code but do not run migrations...

Airbrake (formerly Hoptoad) already ignores certain errors like InvalidAuthenticityToken by default (see Airbrake::Configuration::IGNORE_DEFAULT).\ To ignore additional classes...

agileweboperations.com

User Stories should describe what a user wants the system to do. Purely technical tasks should usually be implemented as...

alfajango.com

We can now plug into every facet of the Rails jQuery UJS adapter, binding to custom events, and even customizing...

The Edge Rider gem will define a method collect_ids on your ActiveRecord models, scopes, integer scalars and collections, which...

github.com

Our new scope-based authorization gem for Ruby on Rails has been released. This might one day replace Aegis as...

ActiveRecord gives you the :include option to load records and their associations in a fixed number of queries. This is...

ActiveRecord models know how to cast a given string to the type of a given attribute (or column).

User.active.to_sql Rails 2 Use either the Edge Rider or fake_arel gem to get #to_sql backported...

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

Within an event handler, there are multiple methods to cancel event propagation, each with different semantics. event.preventDefault() Only prevents the...

makandra dev

If you're using jQuery, you need to update to 1.5.1 to get Internet Explorer 9 to work.