How does Rails make use of Ruby hashes?

**Rails makes extensive use of a Ruby feature to pass a hash as a parameter into a method.** 

What does this mean? 

redirect_to action: ’show’, id:

Rails uses Ruby hashes to pass Controller actions, for example, 

When I click on the title of a blog post on Stoic Hacks, here’s the Ruby hash that I send via Rails: 

{“action“ => “show“, “controller“ => “posts“, “id“ => “10“}


So part of the architecture of Rails is to use Ruby Hashes to pass instructions back and forth between the server.  

| Back