[eluser]Alexander Radsby[/eluser]
I've been thinking about why I should validate form data in the controller.
Let's say that I have a user with a username and a password.
I create a model named user.
Inside the user model I have the instance variables username and password.
These both have getters and setters.
How come that I don't validate the username and password in the setters instead?
If I do this I can make sure that every instance of the user model class is validated.
So I've been thinking of why I should validate in the controller? Isn't that repeating the same thing if I use the user model class in multiple controllers?