-
-
Save daneasterman/f0f1ce1e10e07fc1f5fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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