Hello, Currently when using the select_tag method with the :multiple => true option the name parameter is set as is.
select_tag "access", nil, :multiple => true # => <select id="access" multiple="multiple" name="access"></select> Although for the mulitple values to be sent the name should instead be "access[]". So you can do that with the following... select_tag "access", nil, :name => "access[]", :multiple => true # => <select id="access" multiple="multiple" name="access[]"></select> Should this be set automatically where the method checks for the :multiple option as true and sets the name to "access[]"? So with :multiple => true... select_tag "access", nil, :multiple => true # => <select id="access" multiple="multiple" name="access[]"></select> and without :multiple => true... select_tag "access", nil # => <select id="access" multiple="multiple" name="access"></select> Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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-core?hl=en -~----------~----~----~----~------~----~------~--~---
