public
Created

  • Download Gist
gistfile1.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
@@index
h1 The Flash Farm Shop!
p Choose which animals you would like to buy from our shop.
ul#animals
li
h2 Duck
img src="/duck.png"
form action="/buy/duck" method="POST"
input type="submit" value="Add to Basket" title="Buy me, quack!"
li
h2 Pig
img src="/pig.png"
form action="/buy/pig" method="POST"
input type="submit" value="Add to Basket" title="Buy me, oink!"
li
h2 Cow
img src="/cow.png"
form action="/buy/cow" method="POST"
input type="submit" value="Add to Basket" title="Buy me, moo!"
form action="/checkout" method="POST"
input type="submit" value="Checkout" title="Checkout"

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.