On Aug 11, 1:52 am, 7stud -- <[email protected]> wrote: > The rails docs are so horrible on the collection_select method. They > need to show a *complete* form, and show two examples: one that calls > f.collection_select(), and another that calls collection_select(), and > explain the differences. >
The different between random_helper and f.random_helper is that in the first case, the first argument is used to determine what model object is being edited. In the second case that argument is superfluous since the form builder (f) already has that information. > Given this line: > > f.collection_select :topic, Topic.all, :id, :category > > What the !@#$!@#$ is :topic? the name of the attribute being edited Fred > > -- > Posted viahttp://www.ruby-forum.com/. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

