Is that all of them? I understand the advantages of using
collection_select over the others, as it allows me to pass in a hash,
but other than that, the whole thing confuses me.
Use the first when @object is an instance of an Active Record model.
It automatically sets a suitable name attribute for posted parameters,
and also automatically selects the current value of @object.method.
Use the second for full custom control over the name and selected value.
–
We develop, watch us RoR, in numbers too big to ignore.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.