public
Created

  • Download Gist
gistfile1.rb
Ruby
1 2 3 4 5 6
get '/discount' do
# discount logic goes here
flash.keep
flash[:info] = "A discount of 10% was applied to your order"
redirect to('/finish')
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.