RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: GMFlash
It's a new syntax introduced in Ruby 1.9 for hashes that use symbols as keys.
{class: "none"} is equivalent to {:class => "none"}
{class: "none"}
{:class => "none"}
It's a new syntax introduced in Ruby 1.9 for hashes that use symbols as keys.
{class: "none"}
is equivalent to{:class => "none"}