«« Next » « Previous
«« Next » « Previous

Link Details

If you want it done right, do it yourself! Login and vote now.
Link 80750 thumbnail

By bloid
via paulbarry.com
Submitted: May 13 2008 / 07:56

Often when working with Rails applications, you need to import data from other sources. A common source is an excel spreadsheet. A simple import consists of reading each line in the spreadsheet and creating a record in the database for each line. You could do this is a small Ruby script with SQL, you wouldn't need Rails. But sometimes the import is more complicated. For example, you may want to run your application validation logic on each record. Also, maybe you need to create associated record for each row.
  • 3
  • 0
  • 149
  • 28

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (3)



Voters Against This Link (0)