#OMDB TAKE 3
###Assignment
For this assignment you will be creating an OMDB app one more time.
However, this time, instead of using the OMDB API, you will be creating your own database of movies.
You have been given a sinatra app with code to get you going, and methods to help you setup your database.
You have also been given a working feature to add movies to the databse. There is a route /movies/new
which renders a form to input new movie data. And a route to send this form to, and save the info to your database.
###Phase One
Add a search form
- Have your root path (->
"/"
), render an erb page - Add a form to search for a movie on this page
Hint: Remember to ask yourself, "where should this form go?"
###Phase Two
Search for a movie in your database
- Add a route to send your search form to
- Add code that will seach for movies based on the title your user searched for
- Add a view page to display these results
Hint: Remember, that the results will be returned in an array.
###Phase Three
Add a movies detail feature.
When your users click on a title it should take them to a page with details just for that movie.
- Add a new route for your details link to go to
- Add some code in here that will look up a movie by it's id
- Add a view page to display your movie details
###Phase Four
Add Actors
- In your psql console (from the terminal), make sure you have actors, and that they can be joined to movies
- In your movie details route, lookup a movie, and the actors associted with that movie.
- Display information for the movie and the actors in the movie details page.