Skip to content

Instantly share code, notes, and snippets.

@daneasterman
Created August 12, 2015 16:19
Show Gist options
  • Save daneasterman/f0f1ce1e10e07fc1f5fa to your computer and use it in GitHub Desktop.
Save daneasterman/f0f1ce1e10e07fc1f5fa to your computer and use it in GitHub Desktop.
class SearchesController < ApplicationController
respond_to :html, :js
def index
if params[:confirmation_number] && params[:searchEmail]
end
end
def show
@search = Search.new params[:confirmation_number], params[:searchEmail]
if params[:reservationId]
end
end
def cancel_success
@cancel = Cancel.new params[:reservationId]
end
private
def search_params
params.require(:search).permit(:confirmation_number, :searchEmail, :reservationId)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment