rails ruby console command to save to active record database code example
Example: how to create an SQL save method in ruby
def save
sql = <<-SQL
INSERT INTO songs (name, album)
VALUES (?, ?)
SQL
DB[:conn].execute(sql, self.name, self.album)
end