Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # add to movies_controller.rb, anywhere inside
- # 'class MoviesController < ApplicationController':
- def search_tmdb
- # hardwire to simulate failure
- flash[:warning] = "'#{params[:search_terms]}' was not found in TMDb."
- redirect_to movies_path
- end
Add Comment
Please, Sign In to add comment