On Tue, Sep 16, 2008 at 3:52 PM, Shandy Nantz <
[EMAIL PROTECTED]> wrote:

>
> Frederick Cheung wrote:
> >
> > They're all in the params hash, which is just a regular ruby hash.
> >
> > Fred
>
> I guess when I am trying to ask (and the easy way
> would probably be just to try and see if it works) is, can I say
> params.each and then loop through all the values that are passed in
> regardless of what they are named before hand? Thanks,


Since it's a Hash, you can do each to go through the keys and values
eg

  params.each { |k, v| puts "the key #{k} has value #{v}" }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to