Ruby on Rails Tuesday, August 31, 2010

On 31 August 2010 18:38, Armand Macintosh <snip3r.dp@gmail.com> wrote:
> array = ['a','b','c']
> array.each do|x|
>   puts x
> end
>
> results
> a
> b
> c

That's not going to work in his .erb file is it, as 'puts' is going to
write to the console.

If the OP actually asks a question, we'll *know* what he wants to do
with his array rather than taking random stabs in the dark.

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment