Tuesday, July 26, 2011

Run a SQL query within Ruby on Rails

ActiveRecord::Base.connection.execute(your_sql_statement)