# Transform the model name into a more humane format, using I18n. By default,
# it will underscore then humanize the class name
#
# BlogPost.model_name.human # => "Blog post"
#
# Specify +options+ with additional translating options.
I found the above while digging through Rails trying to discover what exactly are the options for translating. I can find lots of references that say, use +options+ but can find no definitive method where these options are defined. What am I missing?
The method you are talking about is
ActiveRecord::Base#humanthat internally relies on
I18n.translate. Thusoptionscan be any option supported by the I18n method, including:scope,:defaultand more.See http://guides.rubyonrails.org/i18n.html#looking-up-translations
The
optionsargument also depends on the I18n backend you are currently using.