On Tue, Dec 2, 2014 at 7:29 PM, Dmoneyzzz Darko <li...@ruby-forum.com> 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, Person.all.collect { |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 ------------------------ hassan.schroe...@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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDvcm7jrpi3oY02RZveDPWNa_dbB2H6xMzVL%3DkprDKHqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to