You can use something like below,
# For seeding question to question table from question.csv file
if MyModel.find(:all).empty?
file_name = File.join(Rho::RhoApplication.get_app_path('public')+'sample.csv')
file = File.new(file_name, "r")
while (line = file.gets)
col = (line.gsub("\n", "")).split(";")
MyModel.create( {"id" => col[0].gsub('"',''), "text" => col[1].gsub('"','')} )
end
end
Hope this helps you.