#!/usr/bin/env ruby # This code comes from http://ruby-it.org/pages/4.4+-+Salvataggio+di+un+nuovo+record # Check the page for copyright notice and explanations t = Team.new t.name = "Milan" t.balance = 99999 t.owner = "Silvio Berlusconi" t.save Team.create(:name => "Inter", :balance => 99999, :owner => "Massimo Moratti")