Humanizing attribute.to_s match's Rails' default behavior for
generating the label text from the attribute when no class can be found
for the model_name being used. This occurs when a form has two sets of
inputs corresponding to the same model and is using aliases to avoid
name collisions (i.e. billing and shipping addresses backed by an
Address model).
Humanizing
attribute.to_s
match's Rails' default behavior for generating the label text from the attribute when no class can be found for themodel_name
being used. This occurs when a form has two sets of inputs corresponding to the same model and is using aliases to avoid name collisions (i.e. billing and shipping addresses backed by anAddress
model).