Answer the question
In order to leave comments, you need to log in
How to link /profile?
There is a User model and a Profile model nested in it.
When entering the profile, the following link is displayed - /profile.id (/profile.2 or profile.10)
To edit the profile - /profile/edit.id
How to get rid of the id at the end? and change the url to /username
Tried through to_param - it doesn't work.
In routesresource :profile
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question