an_order = Order.new
an_order.name     = "Jakub Dunda"
an_order.email    = "jakub@nekde.cz"
an_order.address  = "Nemanice 123"
an_order.pay_type = "dobírka"
an_order.save


Order.new do |o|
  o.name = "Jakub Dunda"
  # . . .
  o.save
end


an_order = Order.new(
  :name => "Jakub Dunda",
  :email => "jakub@nekde.cz",
  :address => "Nemanice 123",
  :pay_type => "dobírka")
an_order.save


an_order = Order.new
an_order.name = "Jakub Dunda"
# ...
an_order.save
puts "ID této objednávky je #{an_order.id}"


an_order = Order.create(
  :name => "Jakub Dunda",
  :email => "jakub@nekde.cz",
  :address => "Nemanice 123",
  :pay_type => "dobírka")
