Skip to content

Instantly share code, notes, and snippets.

@daz4126
Created June 24, 2012 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daz4126/2983578 to your computer and use it in GitHub Desktop.
Save daz4126/2983578 to your computer and use it in GitHub Desktop.
get '/discount' do
# discount logic goes here
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