Skip to content

Instantly share code, notes, and snippets.

@wjessop
Forked from omgitsads/gist:157249
Created July 28, 2009 13:01
Show Gist options
  • Save wjessop/157250 to your computer and use it in GitHub Desktop.
Save wjessop/157250 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]})
if not @secure.nil?
redirect_to secure_booking2_path and return
else
flash[:warning]="Booking not found"
@secure = Secure.new
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment