diff --git a/Gemfile b/Gemfile index d5c7affd..71d1074f 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,6 @@ +# rana are we on the same branch? + + source 'https://rubygems.org' git_source(:github) do |repo_name| @@ -37,6 +40,8 @@ gem 'jbuilder', '~> 2.5' gem 'will_paginate' +gem 'rack-cors', :require => 'rack/cors' + group :development, :test do # Call 'byebug' anywhere in the code to stop execution and get a debugger console gem 'byebug', platform: :mri diff --git a/Gemfile.lock b/Gemfile.lock index b39604fa..f80bcea9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -119,6 +119,7 @@ GEM pry (>= 0.9.10) puma (3.6.2) rack (2.0.1) + rack-cors (0.4.1) rack-test (0.6.3) rack (>= 1.0) rails (5.0.1) @@ -208,6 +209,7 @@ DEPENDENCIES minitest-spec-rails pry-rails puma (~> 3.0) + rack-cors rails (~> 5.0.1) sass-rails (~> 5.0) spring diff --git a/README.md b/README.md index 2012f5a3..05f85b5d 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,9 @@ Search The Movies DB for movies matching the query Minimum fields to return: - `title` - `release_date` -