On Jan 8, 9:17 pm, Mauro <[email protected]> wrote:
> On 8 January 2011 22:11, Colin Law <[email protected]> wrote:
>
>
>
> > I see now that you have just posted a further correction. Can I
> > suggest that you post them both again, double checking that you have
> > exactly the right code for both of them, by running it and then
> > copy/paste the code into the post.
>
> Sorry for my mistakes.
> The exact code is:
>
> the first:
> <%= select_tag("bags[]", options_for_select(@bags.collect { |bb|
> [bb.bag_type, bb.id] },
> @ruser.bags.collect { |ub| ub.id }), {:multiple => true, :id
> => "bags"}) %>
>
Well the first one is attempting to set which options should be
selected by default
Fred
> the second:
> <%= select_tag "bags[]", options_for_select(@bags.collect { |bb|
> [bb.bag_type, bb.id] }, :multiple => true, :id => "bags") %>
>
> It seems that the html code is the same.
--
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.