hi Larry
try this #---------------------------------------------------------------
ActiveRecord::Base.connection.excute(sql_str) #---------------------------------------------------------------
regards
Larry K. wrote:
How do I run SQL scripts from rails?
I have a testing menu item called “import data”.
How can I get it to call a SQL script file that will import the data
into a
MySQL table for me?
–
Best Regards,
-Larry
“Work, work, work…there is no satisfactory alternative.”
— E.Taft Benson
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.