When you need to see the content of a page (i.e. not all the HTML but the relevant text body...
Learning Rails for the first time should be fun, and Rails for Zombies allows you to get your feet wet...
So you added a new callback to your model that (e.g.) caches some data when it is saved. Now you...
How to write to the db 27,000 times in 24 seconds instead of 9 minutes.
When you eagerly load an association list using the .include option, and at the same time have a .where on...
Sometimes, you just need to shoot from the hip…or deploy your local changes without committing them. Put this snippet...
These two models can be used to access the posts and associated comments of a WordPress database.
Deadlocks only occur if two transactions in separate threads compete for the same rows in the database. They usually (but...
This card explains how to install RubyMine for the first time. If you want to upgrade an existing RubyMine installation...
When rendering a partial with the :collection option, you are automatically provided with a counter variable inside the partial template...
Note that this card is very old. You might want to use ActiveType for your auto-coerced virtual attributes instead...
Don't insert table rows in a Rails database migration. This will break tests that expect that database to be...
Plugins (and gems) are typically tested using a complete sample rails application that lives in the spec folder of the...
If your pidgin IM fails to connect to ICQ, you may need to update it. The ubuntu default sources are...
There is a problem with AJAX response handling for Rails 3 remote links and forms in Internet Explorer. This problem...
As a user of Bundler you have spent significant time looking at this message: Fetching source index for http://rubygems.org...
Thanks to habits engrained by Rails 2’s link_to_remote and remote_form_for, we expect that Rails 3...
Terminus is a Capybara driver where most of the driver functions are implemented in client-side JavaScript. It lets you...
Sometimes you inherit a non Rails or non Rack based web app such as PHP, Perl, Java / JEE, etc. I...
You can now add an :inverse_of option to has_one, has_many and belongs_to associations.... Without :inverse_of...
After switching to Rails 3 you may get a LoadError with the following message when trying to use your application...
You might find that your Passenger ignores all RailsSomething directives in the vhost for your new Rails 3 application. The...
You will need to upgrade to RSpec >= 2 and rspec-rails >= 2 for Rails 3. Here are some hints to...
Be careful when using params.merge as params is a HashWithIndifferentAccess. Why? Usually this should not be an issue but it...