Forum: Ruby on Rails Trunicating Names in options_from_collection_for_select

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.
Mario G. (Guest)
on 2009-05-01 02:56
Anyone know how I could trunicate the names of a passed in array  in

I tried a few things but nothing worked.

Any ideas would be appreciated!

<%= options_from_collection_for_select available_projects, :id, :name,
@selected_project_id %>
This topic is locked and can not be replied to.