[Rails] activerecord to write to database

2013-05-20 Thread Marcio Pugina
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

Re: [Rails] activerecord to write to database

2013-05-20 Thread Hassan Schroeder
On Mon, May 20, 2013 at 3:36 PM, Marcio Pugina li...@ruby-forum.com wrote: 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