Skip to content

cmcilhenny/omdb_with_database

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

  1. Have your root path (-> "/"), render an erb page
  2. 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

  1. Add a route to send your search form to
  2. Add code that will seach for movies based on the title your user searched for
  3. 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.

  1. Add a new route for your details link to go to
  2. Add some code in here that will look up a movie by it's id
  3. Add a view page to display your movie details

###Phase Four


Add Actors

  1. In your psql console (from the terminal), make sure you have actors, and that they can be joined to movies
  2. In your movie details route, lookup a movie, and the actors associted with that movie.
  3. Display information for the movie and the actors in the movie details page.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%