Display images similar to a simplified Instagram account.
Relevant Examples:
RealEstate PetPhotoUpload Hospital1
Specifications:
Create a Rails project with two scaffolds: User and Photo.
Each user should have a profile, which includes a photo. You decide
which fields to include in your photo. You will use these fields when you
create a scaffold for the User model
Each photo should have a title, a description, and an owner id. Include
other fields in the Photo model if you wish. The Photo model should also have the
virtual field :photo as in the PetPhotoUpload Example.
Use a text area for inputting the photo description, because it might be several sentences.
Don't display the Photo description on the Photo index view. You can
show the description on the Photo show view and on the User show view where you
show all the photos for that user.
Photos are uploaded as in the PetPhotoUpload Example.
Uploaded photos should not be more than about 30K in size. Use Microsoft Paint or Photoshop
to reduce your images if necessary.
On the show view for User, display all of the photos for that user
formatted in a manner similar to the index page of PetPhotoUpload.
Also on the show view for User, display the count of the photos something like this:
Stan Smith has 45 photos.
On the new and edit views for Photo, show a dropdown box that displays the user's name
The Photo index view should show all of the photos, but reduced in size.
Supply a title and heading for each view, which are set in the controller.
Include links from the User index page to the Photo index page and vice versa.