我想使用标签来收集项目(例如,它们的翻译)。
= simple_form_for(@client) do |f|
= f.error_notification
.form-inputs
= f.input :name, label: t( client.name )
= f.input :level, collection: [ a , b , c ],
label_method: ????
label: t( client.level )
.form-actions
= f.button :submit, value: t( client.submit )
I am trying to figure out, what to use for label_method
above.
I would like to have label_method to map to translations as in map {|s| t("client.#{s}")}
.