Ruby on Rails Monday, December 26, 2011

Thanks for help. It works fine!

On 26 дек, 20:49, Hassan Schroeder <hassan.schroe...@gmail.com> wrote:
> On Sun, Dec 25, 2011 at 7:48 PM, Nikolay <itsniko...@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.schroe...@gmail.comhttp://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