Rails4 defect fixes

Style/HashSyntax: Use the new Ruby 1.9 hash syntax.<br>Style/SpaceAroundOperators: Surrounding space missing for operator '=>'.