module FormtasticTristateRadio::I18n::Error::Base
Public Instance Methods
message()
click to toggle source
@note In you have ActiveAdmin installed, it will give you YAML example for ActiveAdmin as well, otherwise only for Formtastic
@return [String] error message with YAML examples for the “unset” label translation lookup error
@see github.com/ruby-i18n/i18n/blob/master/lib/i18n/exceptions.rb#L63 Original I18n
method
Calls superclass method
# File lib/formtastic_tristate_radio/i18n/error.rb, line 32 def message msg = [] msg << "Add translations for the “unset” radio label" msg << ["For radiobutton labels in forms:", EXAMPLE_FORMTASTIC].join("\n") msg << "Note: “yes”, “no” and some other reserved words are converted into Boolean values in YAML, so you need to quote or symbolize them." msg << ["For ActiveAdmin status tags in index & view tables:", EXAMPLE_ACTIVEADMIN].join("\n") if !!defined?(ActiveAdmin) [super, msg.join("\n\n")].join("\n\n") end