HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-2.6.8/doc/activemodel-6.1.4.1/ri/ActiveModel/Errors/generate_message-i.ri
U:RDoc::AnyMethod[iI"generate_message:ETI")ActiveModel::Errors#generate_message;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"6Translates an error message in its default scope ;TI",(<tt>activemodel.errors.messages</tt>).;To:RDoc::Markup::BlankLineo;
;	[I"rError messages are first looked up in <tt>activemodel.errors.models.MODEL.attributes.ATTRIBUTE.MESSAGE</tt>, ;TI"bif it's not there, it's looked up in <tt>activemodel.errors.models.MODEL.MESSAGE</tt> and if ;TI"Othat is not there also, it returns the translation of the default message ;TI"O(e.g. <tt>activemodel.errors.messages.MESSAGE</tt>). The translated model ;TI"Ename, translated attribute name and the value are available for ;TI"interpolation.;T@o;
;	[
I"LWhen using inheritance in your models, it will check all the inherited ;TI"Nmodels too, but only if the model itself hasn't been found. Say you have ;TI"I<tt>class Admin < User; end</tt> and you wanted the translation for ;TI"Ithe <tt>:blank</tt> error message for the <tt>title</tt> attribute, ;TI"%it looks for these translations:;T@o:RDoc::Markup::List:
@type:BULLET:@items[
o:RDoc::Markup::ListItem:@label0;	[o;
;	[I"D<tt>activemodel.errors.models.admin.attributes.title.blank</tt>;To;;0;	[o;
;	[I"3<tt>activemodel.errors.models.admin.blank</tt>;To;;0;	[o;
;	[I"C<tt>activemodel.errors.models.user.attributes.title.blank</tt>;To;;0;	[o;
;	[I"2<tt>activemodel.errors.models.user.blank</tt>;To;;0;	[o;
;	[I"cany default you provided through the +options+ hash (in the <tt>activemodel.errors</tt> scope);To;;0;	[o;
;	[I"/<tt>activemodel.errors.messages.blank</tt>;To;;0;	[o;
;	[I"+<tt>errors.attributes.title.blank</tt>;To;;0;	[o;
;	[I"#<tt>errors.messages.blank</tt>;T:
@fileI"lib/active_model/errors.rb;T:0@omit_headings_from_table_of_contents_below000[I"/(attribute, type = :invalid, options = {});T@IFI"Errors;TcRDoc::NormalClass00