pass an object or an id??

This will answer part of your question:

http://www.therailsway.com/2007/1/10/assetsgraphed-part-2