On Mar 2, 2:02 am, Toro <[email protected]> wrote:
> Hello,
>
> I have a hash, represented by @hash. I want to display the keys and
> values of @hash in my view.
> I realize that if say one of keys was "ip_address" i could simple add
> this to my view: <%= @hash['ip_address'] %>.
> However! @hash changes...Thus I won't always have the same keys. I
> need a way to show key and values of a hash without specifically
> naming each key that I want in my view.
>
Iterate over the hash with each ?

Fred
> Any suggestions would be greatly appreciated.
>
> Thanks,
>
> Toro
--~--~---------~--~----~------------~-------~--~----~
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