title: Create a ruby method that accepts a hash of parameters
body: <p>I don't know how to create a ruby method that accepts a hash of parameters. I mean, in Rails I'd like to use a method like this:</p>
  <pre><code>login_success :msg =&gt; &quot;Success!&quot;, :gotourl =&gt; user_url
  </code></pre>
  <p>What is the prototype of a method that accepts this kind of parameters? How do I read them?</p>