Try `params.each do |key, value|`.
On Mon, Jan 26, 2015 at 12:11 PM, BeeRich33 <[email protected]> wrote:
> Hi folks. I want to display the parameters in a nice way, iterated
> through each param and display the key and its value. How can I get this
> done?
>
> This is what I have:
>
> -a = params.count
> - 0..a do |i|
> %p= "#{params.keys[i]} = #{params.values[i]}"
>
> All I get is an ISE. Still getting used to the syntax here.
>
> Any advice appreciated. Cheers
>
> --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/haml.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Haml" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/haml.
For more options, visit https://groups.google.com/d/optout.