Model-less sql

I feel stupid… but here goes:

How do I write and execute SQL without a model? I just want to insert
(or select) some various information but don’t want to bother with a
model class and save() method, etc…

i want:

sql = “insert into table values (stuff)”


sql = “select * from modelless table”
result_array = execute(sql)


thank you

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs