Skip to content

Instantly share code, notes, and snippets.

@omgitsads
Created July 28, 2009 12:59
Show Gist options
  • Save omgitsads/157249 to your computer and use it in GitHub Desktop.
Save omgitsads/157249 to your computer and use it in GitHub Desktop.
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