For Mrperfect wrote:
> doesn't anyone know how to retrieve the id of the last inserted record, 
> using ruby?

It's not that, it's that no-one tends to respond quickly to folk who don't
bother to use Google. Look at the following link, and show the source of "insert":

<http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SQLServerAdapter.html#M000779>

To learn more, you might need to check out the ActiveRecord source code using svn.