Use new style of rails command.
Merge pull request #1672 from miry/rails3_command_fix

Use new style of rails command.