Sha256: 6977bdfa1516afc573cc373122b3f94b9d0ebb856cd5eb7b00b47816f1353bf2
Contents?: true
Size: 334 Bytes
Versions: 6
Compression:
Stored size: 334 Bytes
Contents
= form.fields_for field.translations_field do |localized_field| - I18n.available_locales.each do |locale| - val = form.object.send("#{field.name}_translations").try(:[], locale.to_s) %div = localized_field.label locale = localized_field.send field_type, locale, html_attributes.reverse_merge({ :value => val })
Version data entries
6 entries across 6 versions & 2 rubygems