Forum: Ruby on Rails Select Helper with html option

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Cdfe3f57e076d7a31882de91fd95eb19?d=identicon&s=25 james_027 (Guest)
on 2007-01-23 20:19
(Received via mailing list)
hi iam trying to put some html option in the select helper like this

<%= select('personnel', 'department', %w{Accounting Executive Export
I.T. HR Marketing Logistics Production Purchasing R&D Sales},
html_options = {size = 30}) %>

I think it is not the right way. How do I do it? And what are the
options we can use in the options and html_options parameter.

This topic is locked and can not be replied to.