Sample handle wrong inputs

Model Validation and Resource Not Found:
http://12devs.co.uk/articles/writing-a-web-application-with-ruby-on-rail
s/