module WithForm::TranslationHelpers

Public Instance Methods

label(model_name, attribute) click to toggle source
# File lib/with_form/translation_helpers.rb, line 7
def label(model_name, attribute)
  translate(attribute, scope: [:helpers, :label, model_name])
end
submit(model_name, action = :submit) click to toggle source
# File lib/with_form/translation_helpers.rb, line 3
def submit(model_name, action = :submit)
  translate(action, scope: [:helpers, :submit, model_name])
end