-
-
Save caius/157252 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 SecureController < ApplicationController | |
layout 'secure' | |
def booking | |
@secure = Secure.find(:first, :conditions => { | |
:email => params[:secure][:email], | |
:reference => params[:secure][:reference] | |
}) | |
# Redirect if we have the data | |
redirect_to secure_booking2_path and return unless @secure.nil? | |
# Or show the stuff | |
flash[:warning] = "Booking not found" | |
@secure = Secure.new | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment