I came up with this a while back in response to a question asked on Twitter. I just came across it after being asked about it again, yet I've never had a use for it myself. This will give you the SQL INSERT statement generated by ActiveRecord for the attribute values set on the model instance. record = Post.new(:title => 'Yay', :body => 'This is some insert SQL') # easiest way to achieve this is b
