From: Max Williams Date: 2007-07-12T04:53:49+09:00 Subject: question about passing hashes to an action It seems to be a common tactic in ruby to pash what looks like a key-value pair, in which the key is a symbol, to an action. For example with the rails action 'render', we say render :text => "Hello world!" #(from dhh's famous blog tutorial) Can anyone explain to me what's happening here, ie what's being passed in? Is it the equivalent of having a (say) java method that takes a string and saying render("Hello world!")? I've been trying to experiment with my own classes with this tactic, but i'm new to ruby and can't get an example of the above working. -- Posted via http://www.ruby-forum.com/.