Created
July 28, 2009 12:59
-
-
Save omgitsads/157249 to your computer and use it in GitHub Desktop.
This file contains hidden or 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_to secure_booking2_path and return if not @secure.nil? | |
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