I wanted to know if this can be done knowing the following:
the parameter that I want to show instead of
id
is the name and in the database it is not a unique parameteri wish i could take the parameter
id
so i can then display the other parameter which is not unique in the database (name)
Can this be done? I will leave the route I use for this case:
get 'user/:id' => 'users#userProfile', as: 'user_profile'
first of all, Thanks.