Fix failing spec and logging. to_param is ActiveModel feature which is not available here.