I’m looking for a way to store the sql string that is generated in an update or create action. I’ve tried appending .to_sql to the end of update_attributes but it returns a TrueClass error (or something like that). Is there something that I am missing?
I’m looking for a way to store the sql string that is generated in
Share
These methods both return a boolean. You can’t invoke
to_sqlon a boolean.