Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
belongs_to associations will now render errors attached to the associ…
…ation and the column (fixes issue #161) * previously f.input(:section) would only look to errors[:section] * so anything in errors[:section_id] would not be displayed * some associations like validates_uniqueness_of need to be done on the column name * Formtastic will now also look at errors[:section_id] (or whatever the foreign key is named) * we squish all the errors together, make sure they're unique and display them all with the input
- Loading branch information
1 parent
f0d57ed
commit 1bd9545
Showing
3 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters