Hassan Schroeder wrote in post #1163878:
> On Tue, Dec 2, 2014 at 7:29 PM, Dmoneyzzz Darko <[email protected]>
> wrote:
>
>> undefined method `merge' for #<Array:0x5c68788> in
>> appointments/_form.html.erb
>
> OK, good, but --
>
>>> How did your code compare to the documentation for that method?
>
>> <%= f.select "appointment_time", "test", timeslots.map.with_index{
>> |name, index|  [name, name] } %>
>
> From the  ActionView::Helpers::FormBuilder doc example:
>
> <%= f.select :person_id,  { |p| [ p.name, p.id ] },
> include_blank: true %>
>
> How do those two method signatures differ? Hint: what does "test"
> in the first one represent?
>
> --
> Hassan Schroeder ------------------------ [email protected]
> http://about.me/hassanschroeder
> twitter: @hassan

Thanks for walking with me.

Appears as though test is in the same location as Person.all.collect. if 
I change test to something like appointment.all.collect I might get 
another value..?

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/187daafbe821880d9ff13da96c55c918%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to