I’m little confused about the MVC, I don’t really know how to use it, as
I understand the controller are used for events, and the view is what
the visitor will see, and the model where you assign the variables which
view would use?
Is this correct?
If yes, then why do I validate things in Model (below)? isn’t this a
event which should be in the controller?
errors.add(:username, “must not be john”) if username == “john”
I hope someone can give me a link or anything to understand where things
should be (MVC)?
Thanks for any little help