In addition to In Ruby what does "=>" mean and how does it work?:
You mostly will see the =>
to define parameters for a function. Think of this as a nice convenience: You need not remember the right order of your parameters, as all parameters are wrapped into a giant hash. So if you have a simple helper method like
link_to "My link", my_path, :confirm => "Are you sure?"
this is way better than
link_to "My link", my_path, null, null, null, null, "Are you sure?"
just because you want to use a rarely used parameter. So passing parameters with a hash is just a convention in Ruby/Rails to make life easier.