search for: redirects_to

Displaying 1 result from an estimated 1 matches for "redirects_to".

Did you mean: redirect_to
2006 Mar 11
2
How do you display validation errors when validating child models?
...to a post. Validating posts works fine and the errors are displayed as they should be. When I try to validate a comment using: validates_presence_of :summary It does the proper validation by not inserting the comment, but the validation error message isn''t displayed when the controller redirects_to the ''show'' action. So, any ideas about how to get these child validations to display properly in the parent''s view? Thanks, Bryce