Topic: posting to db with activerecords

I created a db with rake migrate and added to columns, symbol and
cur_price in a table call Financials. I want to use activererecord from
a script to write the data from the script to the database. Could
someone please provide an example.

Model:
class Financials < ActiveRecord::Base
  attr_accessible :symbol, :cur_price


symbols = [ 'csco","c","bac"]

cur_prices = ['10','20','30']


Thanks in advance

Last edited by mp84601 (2013-05-20 18:43:07)