I have been noticing that the rails community has been moving towards using the ":" notation for more things. And now recently I received a comment in a code review that this:
post 'examples/', to: 'examples#index'
post "examples/" => "examples#index"
In context of Rails routes:
There is no difference.
No, it's the same.
Just a more readable,
'from' => 'to' and
'from', to: 'to'
=> notation it's a hash ruby feature, and related to the
You can write symbols by two ways
:key => value and