RailsCasts Pro episodes are now free!

Learn more or hide this

Andrew Frank's Profile

GitHub User: sirmxanot

Comments by Andrew Frank

Avatar

I'm trying to use Form Objects for something more complicated than what is in this railscast. I'm interacting with multiple models and in this case it doesn't make sense for me to move the validations from each model or to replicate them in the form object. I've tried using a validate do block and going through each object i'm creating, seeing if its valid? then adding the validation errors to the errors of the form, but I'm having a lot of trouble getting this to display properly. Has anyone else run into this issue?