Skip to content

Instantly share code, notes, and snippets.

@daz-codes
Created June 24, 2012 15:03
Show Gist options
  • Save daz-codes/2983582 to your computer and use it in GitHub Desktop.
Save daz-codes/2983582 to your computer and use it in GitHub Desktop.
get '/discount' do
# discount logic goes here
flash.keep
flash[:info] = "A discount of 10% was applied to your order"
redirect to('/finish')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment