Archive for June 19th, 2006
Rails: Issuing direct query to database
You can issue direct query to database by:
result = ActiveRecord::Base.connection.execute("SELECT * from tablename")
and fetch hash:
a=result.fetch_hash
Add comment June 19, 2006






