On Sun, Dec 25, 2011 at 7:48 PM, Nikolay <itsnikolay@gmail.com> 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 ------------------------ hassan.schroeder@gmail.com
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 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