# Importing CSV File Using rails

**URL:** <https://www.ruby-forum.com/t/importing-csv-file-using-rails/120535>\
**Category:** Rails\
**Created:** [November 18, 2007, 2:46am UTC](https://www.ruby-forum.com/t/importing-csv-file-using-rails/120535 "2007-11-18T02:46:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jagan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5ac83/32.png) [@jagan](https://www.ruby-forum.com/u/jagan)\
**Post date:** [November 18, 2007, 2:46am UTC](https://www.ruby-forum.com/t/importing-csv-file-using-rails/120535/1 "2007-11-18T02:46:32Z")

</div>

Hello ALL,

Can any body help me in writing a code where i can import a CSV file  
in to mysql database using rails.

I dont want to write any models for importing because there are large  
number of tables and each table does not have its model.

I can get the table name from the parameters

So is there any generic way for me ,so that i can import with just the  
tablename

Thanks  
Jagan
