Forum: Ruby on Rails Trunicating Names in options_from_collection_for_select

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fd0b8a5e3854d056ee30f07feedf2219?d=identicon&s=25 Mario Gr (mario517)
on 2009-05-01 00:56
Anyone know how I could trunicate the names of a passed in array  in
options_from_collection_for_select?

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.