I know this may be a stupid question, but I don't know how to create a ruby function that accepts a hash of parameters. I mean, in Rails I'd like to use a function like this:
login_success :msg => "Success!", :gotourl => user_url
What is the prototype of a function that accepts this kind of parameters? How do I read them?
Thanks in advance!