[Rails] Simple check_box

2011-05-19 Thread Eric M.
Hello, I'm trying create a simple check_box that if checked include a hidden_field, but I haven't success. Something like this: p class=field/p %= check_box_tag(:patrono, value = 1, checked = false, options = {}) % %= f.label Patrono % % if :patrono.checked == true % %=

[Rails] Re: [Form Helpers] Collection_select multiple and accepts_nested_attributes_for

2011-05-19 Thread Eric M.
Try this: %= collection_select(:taggings, :tag_ids, Tag.find(:all), :id, :name, {}, {:multiple = true}) % -- 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 post to this group, send email to