/ gem

Use syntax_fix gem to change old ruby hash style

Change old Ruby 1.8 hash syntax to new one in Rails app.

syntax_fix gem changes the hash style from ':key => "value"' to 'key: "value"'

Put this line in your Gemfile: gem 'syntax_fix'


This command will check and rewrite all files with the new syntax.


v <-- be verbose about the actions

p [PATH] <-- specify the relative path to start actions from

Reference: https://github.com/HeeL/syntax_fix

Yogendra Tala

I am Ruby on rails developer. I like to work on web development technologies. Listening music, reading articles are my hobbies.

Read More