calebhearth / formulaic

Simplify form filling with Capybara
MIT License
552 stars 29 forks source link

Humanize attribute when translation fails and class does not exist #60

Closed ecbypi closed 7 years ago

ecbypi commented 8 years ago

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).