Generate Photo

$ rails g scaffold photo title:string

-simplify the scaffold
* delete all the views
* simplify controller to {create, update, destroy}
* delete assets and test files
* remove route

$ rails generate paperclip photo image

$ rake db:migrate

-add validation to photo
* validates_attachment
* documentation: Module: Paperclip::Validators::ClassMethods