Actually got it to work:

        -a = params.count
        - (0..a).each do |i|
                %p #{params.keys[i]} = #{params.values[i]}


> On Jan 26, 2015, at 5:59 PM, Norman Clarke <[email protected]> wrote:
> 
> 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 a topic in the Google 
> Groups "Haml" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/haml/6g7qg7l1Zxw/unsubscribe.
> To unsubscribe from this group and all its topics, 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.

Reply via email to