My select takes the elements of a list of enum values declared in the model.
Select:
<div id="window" > <%= f.label :Повторяется %> <%= f.select :repeat_interval,options_for_select(Event.repeat_intervals.keys, @event.repeat_interval)%> </div> Model:
enum repeat_interval: [ :not_repeat, :week, :month, :year ] Now the elements of the select list are the keys repeat_interval, I would like to display the elements of the list in the selector in Russian, without touching the keys repeat_interval.
How can I organize this, maybe there is some kind of heme, I heard about enum-help, but I haven’t been able to figure it out yet.