My CSV file (obyek.csv) is look like: “title”,”description”,”latitude”,”longitude” And my table structure is: create_table byeks do |t| t.column :title, :string, :limit => 40 t.column :description, :text t.column :latitude, :decimal, :precision => 20, :scale => 17 t.column :longitude, :decimal, :precision => 20, :scale => 17 t.column :created_at, :datetime t.column :updated_at, :datetime t.column :created_by, :integer t.column :updated_by, [...]
Tulisan terkirim dikaitan (tagged) ‘snippet’
CSV Into ActiveRecord
Diposkan dalam rails, Label activerecord, csv, rails, snippet pada 28 Oktober 2007 | Tinggalkan sebuah Komentar »



