Labels, i18n and More #87
Replies: 1 comment
-
Google Group Date: Sun, 2 Dec 2018 14:12:56 -0800 On Sunday, December 2, 2018 at 12:50:22 PM UTC-8, Steven Garcia wrote:
You probably want to use the explicit labeler instead of the default Forme.register_config(:mine, labeler: :explicit) You can specify Thanks, |
Beta Was this translation helpful? Give feedback.
-
Google Group Post: https://groups.google.com/g/ruby-forme/c/A_CNfqtbDCg
Google Group Date: Sun, 2 Dec 2018 12:25:25 -0800
Google Group Sender: [email protected]
For some reason my input tags are not outputting labels.
Forme.form(@site, method: 'post', url: 'admin/sites') do |f|
f.input :text, name: :company_name
end
gives me
I have to specify the :label option in order to get the appropriate tag.
f.input :text, name: :company_name, label: 'Company Name'
which gives me
Company Name:
This is disappointing in two ways:
messes up my design.
there seem to be any option to override.
I was also hoping to have my labels auto-translated so I was pleased to
find forme_i18n.
I am already using roda_i18n gem and configured my Sequel plugins:
Sequel::Model.plugin :forme
Sequel::Model.plugin :forme_i18n
That last line blows my app up with "cannot load such file -- i18n"
Hmm.. apparently roda_i18n is not compatible? I installed the i18n gem and
the error went away.
Still no labels... even though I loaded i18n locale paths and set up the
file as per the instructions:
models:
sites:
company_name: Company Name
So there you have it. No implicit labels or translations. Surely I am
missing something?
Thanks in advance for any guidance.
Beta Was this translation helpful? Give feedback.
All reactions