On Sun, Dec 25, 2011 at 7:48 PM, Nikolay <[email protected]> wrote:

>                                             ~VIEW~
> ../_contract.html.erb
> <%= @places.names %> # Does't work

   @places.map(&:name)

will give you an array of names which you can format as you wish.

HTH,
-- 
Hassan Schroeder ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

-- 
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