I'm new to rails and currently involved in an internship and I was assigned to use the friendly_id gem for my tournament class, this is part of the code in it:
class Tournament < ApplicationRecord
extend FriendlyId
friendly_id :url_id
...
end
I don't use a slug since I have a url_id
attribute that stores my desired url and when I try with the old .../tournaments/1
everything's all good but with .../tournaments/example
I get "example is not a valid value for id" with code 103, status 400. Any ideas what the problem might be?