Displaying 1 result from an estimated 1 matches for "publisher_name".
2006 Jan 23
2
problem with options_for_select
...e I am missing
something. The docs say that the selected element may be an array of
values, but I can''t get it to work. Any ideas? My code is below.
Thanks in advance.
Sean
<select name="publisher_ids[]">
<%= options_for_select (@publishers.map {|p| [truncate
(p.publisher_name, length = 30, truncate_string = "..."), p.id]},
@book.publishers )%>
</select>