Is there a quicker way to find info of a new record?

This was just discussed on the list: After the .save, @contact.id is the primary key of the newly saved record.

However, did you know that you can do:

   @contact = current_user.create_contact(params[:contact])

See the rdoc for belongs_to

-Rob

Rob Biedenharn http://agileconsultingllc.com
Rob@AgileConsultingLLC.com