Use this README file to introduce your application and point to useful places in the API for learning more.
Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.

Installed a plugin called: validates_existence
This will protect from a 'nasty' error if a user is editing for instance a review for a movie and another user had deleted the movie in the meantime, when the current user tries to save the review, it would be unpleasant.

The UI for photos is slightly different than 'normal'. The 'Edit' function allows to edit the meta-data of the photo only and even that with the exception of 'content_type'. You can still delete unwanted photos, upload new ones and annotate existing one with different photo name and description. The listing shows the meta-data only, because of space constraints.

Ajax / RJS  functionality
I've created an effect when you want to add or subtract movies from actors. I could have done it for the other side too, but decided it might be redundant and over done, so if you add (or subtract) actors to/from movies, this effect does not come into play. Only the check boxes and a selection list are presented.

When the app. is empty, I present sample screens for movies/actors and genres, so the user is not confused before she/he had a chance to enter any information.

There are 6 database table: movies, actors actors_movies, reviews, photos and genres. actors_movies facilitates the many-to-many relationship between actors and movies. There can be many movies per genre, but movie belongs to one genre. A movie can have multiple reviews. An actor can have multiple photos. When an actor is presented ('show'), he/she will have an accompanying photo (one selected in random), if at least one photo exist on the database for that actor.

If a movie is deleted, the reviews for that movie will be deleted as well (with a warning). When a genre is deleted, it does not effect movies in terms of existence, but if the movies were assigned to the deleted genre, they will be 'unassigned' as a result. In order to re-assign a genre, those movies can be edited at any time with either a new genre or we can re-enter the 'deleted' genre again and re-assign the movies to it.  
