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


Ruby Script parameters:

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

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


Thanks in advance

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/a9339cf10a91e8e4cce4af596fcec85c%40ruby-forum.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to