Add new_record? to model and make to_param respond with ID if there are no slugs for better Rails compatibility