Ruby on Rails Friday, April 1, 2011

On Apr 1, 7:43 pm, "Mendel G." <li...@ruby-forum.com> wrote:

>
> Well... The complicated part comes now. I haven't idea on how to
> implement the validation. If the validation is done in the controller, I
> don't know how to show the errors that could happen (errors.add_to_base
> doesn't work because 'errors' object belongs to the model). If the
> validation is done in the model, I'll mighty be breaking 50% of the MVC
> rules by including references of other models into the Record model
> skeleton.

So the record corresponds to what is entered by a user filling in one
of these generated forms and what you are trying to do is check that
they have filled in the form respecting all the constraints setup for
that form?

Fred

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment