Given the problem you have a new column postion and that column should be updated for all existing rows with...
Generally for nested forms, a blank form is placed below all other existing object forms. If you would like to...
When you require the Ruby debugger to be available from your Rails console (e.g. you want to inspect a method...
When adding a new field to your model's database table, don't set any defaults in the database.
In order to open a MySQL shell without the need to enter user and password, you can say the following...
In case you have sensitive data within your RDS instance, you want to use encrypted connections between your application and...
Recently, we had an interesting lunch-break with the rails 3.1. asset-pipeline in production mode. Daniel Zahn made a...
The colors in Rails log files are helpful when watching them but, since they are ANSI color codes like ^[[4...
There is a new card about how to do this with the new AWS Command Line Interface
If Rails or Rake are complaining about a missing gem that is listed in your Gemfile.lock and the listed version...
When you run rake db:create and get this error message Couldn't create database for {"encoding"=>"utf8", "username"=>"root...
Most likely you run rake and your code is causing an exception which is not the one shown in your...
When you put a Rake task into lib/tasks, but running it fails with... Don't know how to build task...
class Errormaster CoffeeIsOut = Class.new(StandardError) # is prettier than class CoffeeIsOut < StandardError; end end Reference such an error class with Errormaster...
Whenever Firefox updates, all your Cucumber features that use Selenium break. This is annoying. In order to remedy this, version...
Selenium does not speak SSL because it uses WEBrick that doesn't. When you use Selenium for Cucumber scenarios that...
Observed on Rails 2.3 and machinist 1.0.6 Like the title says, when you define the method empty? like in the...
There is a bug in Rails 3's dbconsole script, which makes the following command open a database console for...
Remember how Rails 2 came with an awesome feature that broke all code using Time.now or Time.parse? This behavior is...
Simple: Tell the application controller how to handle exceptions, here a RecordNotFound error. Do this with the following line: # application_controller.rb...
Ever wondered how Rails talks to itself in a Cucumber feature? In Rails 3 you can do it like this...
Do you have page caching enabled for the development environment and there are cached pages lying around in public/?
jQuery as new default Javascript library, streaming response support, attr_accessible with roles, prepared statements, easier migrations.
I believe that when WEBrick has trouble bringing up your Rails application, the WEBrick component that is supposed to print...