If you're on Ubuntu: sudo apt-get install ruby-dev On other platforms: Look for a package containing ruby...

When you are using Apache for development, it still accepts connections from everyone in the same network as you.

When you eagerly load an association list using the .include option, and at the same time have a .where on...

This card explains how to install RubyMine for the first time. If you want to upgrade an existing RubyMine installation...

Occasionally some complex query must be processed on the database because building thousands of Ruby objects is impracticable.

For clarity and traceability, your commit messages should include the ID and title of the Pivotal Tracker story you're...

You most likely never want to do this. But if you do: Model.update_all({:id => new_id}, {:id => old_id...

To install webmock 1.5.0: sudo gem install webmock --version "=1.5.0" or sudo gem install webmock -v "=1.5.0"

Use this scope: class Stick named_scope :shuffled, lambda { last_record = last { :conditions => [ 'id >= ?', rand(last_record.id) ] } if last_record }

skorks.com

Ctrl + R Search commands you entered previously. Press Ctrl + R again to search further back, Ctrl + Shift + R searches forward...

Use this MySQL command to show further info about a table: SHOW CREATE TABLE tags; This will output a table...

If a controller action responds to other formats than HTML (XML, PDF, Excel, JSON, ...), you can reach that code in...

After switching to Rails 3 you may get a LoadError with the following message when trying to use your application...

When using form_for you can give the form's target URL either as a string or an array:

You need to install the following packages before you can build the Nokogiri gem: sudo apt-get install libxml2-dev...

If you get an error message like that you are missing the Aspell files a specific language:

A good tool to generate strong passwords and secrets is "apg". You can get it with sudo apt-get install...

You need to install the following packages before you can build the Paperclip gem: sudo apt-get install imagemagick librmagick...

These steps are now part of Spreewald. This note describes a Cucumber step that lets you write this:

makandra dev

Note that you should disable the Java plug-in in your browsers after installation. Ubuntu >= 12.04 Java 11

When you need to delete rows from a table, and the delete conditions require a joined table, MySQL needs to...

makandra dev

You don't need a Rails application to use Sass. Even when you're working on a static site you...

Find conditions for scopes can be given either as an array (:conditions => ['state = ?', 'draft']) or a hash (:conditions => { 'state' => 'draft...

There are many different methods that allow mapping an Array to a Hash in Ruby. Array#to_h with a...