Ruby on Rails Tuesday, June 29, 2010

Hassan,

Please hold off on looking at my last, unreasonably large post. I'm
embarrassed to have posted such a monstrosity.

I found a bunch of tutorials on collection_select, so I should be
able to discover where I've gone astray in trying to apply that method
in my app. I'll post back how I solved my problem using those
resources, should I be so fortunate.

Best wishes,
Richard

On Jun 28, 4:42 pm, Hassan Schroeder <hassan.schroe...@gmail.com>
wrote:
> On Mon, Jun 28, 2010 at 1:06 PM, RichardOnRails
>
> <RichardDummyMailbox58...@uscomputergurus.com> wrote:
> > undefined local variable or method `nickname' for #<ActionView::Base:
> > 0x442c8f0>
> > Extracted source (around line #10):
> > 10:     <%=  f.collection_select(:vendor, :vendor_id, @vendors, :id,
> > nickname) -%>
> > 3. I tried a colon in front of "nickname" in the  f.collection_select
> > statement to no avail; besides, the documentation you referred to
> > suggested a bareword.
>
> ? I'm looking at (unframed)
>
> <http://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelp...>
> with this 'sample usage':
>
>   collection_select(:post, :author_id, Author.all, :id,
> :name_with_initial, {:prompt => true})
>
> Are you sure you got the *exact same* error using :nickname ?
>
> If so,  what's the code that creates @vendors ?
>
> --
> Hassan Schroeder ------------------------ hassan.schroe...@gmail.com
> 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