add attachment= to gem, change after_save to after_create