Hi,
I have a model with start_date and end_date and a helper:
def period
"#{start_date} - #{end_date}"
end
in my view I have:
<%= f.collection_select :schedule_id,
@convention.schedules, :id, :period, {:selected => @schedule.id} %>
How can I show :period localized, as <%=l ... won't work.
Regards
Arwed
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---