Consider three models:
- Actor [first name, last name]
- Movie [name, revenue]
- Genre [name]
Tasks:
- think about relationships between each od the models (do not overcomplicate it, lets assume that movie has one genre).
- create CRUD for this 3 models -> addidtional information on index page:
- Actors - 3 movies they played in
- Movie - genre
- Genre - amout of films from this genre
- Sorting / filtering -> (https://github.com/activerecord-hackery/ransack)
- Stats page:
- Most active actor: xx
- Movie which generates the biggest revenue: xx
- Most popular genre: xx
Test your solutions :)