blog.plataformatec.com.br

It is common in Rails 3.0 applications that you want to provide default views for a group of controllers. Let...

makandra dev

When installing RMagick you may get an error messages like this: Version 2.13.1: checking for Ruby version >= 1.8.5... yes

apidock.com

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

makandra dev
github.com

Artifice allows you to replace the Net::HTTP subsystem of Ruby with an equivalent that routes all requests to a...

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

makandra dev

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

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

If you just upgraded to Bundler 10.0.10 you might get the following error when bringing up Rails: /usr/lib/ruby/1.9.1/psych.rb:148:in...

Note that you cannot currently use Ruby 1.9.2 with Rails 2 applications that use RSpec, so don't upgrade if...

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

ActiveRecord comes with a method touch which sets the updated_at timestamp to the current time. Unfortunately it also runs...

Specify these gem versions in your Gemfile: gem 'cucumber', '~> 1.3.0' gem 'cucumber-rails', '= 0.3.2' # max version for Rails 2

pluginaweek.org

Now allows to list transition paths from and to arbitrary states.

Add deprecation warnings and their solution or link to available solutions. Global access to Rake DSL methods is deprecated. Please...

If in your application your users pass along params that result in filenames, like invoices/generated?number=123. This could be...

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

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

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

github.com

Adds a slide out panel to your Rails application that directs clients to test stories that have been marked as...

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

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

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