I am using devise for my auth and it works great. I need a profile page and I created a controller for Users
and have a show
method in there which links to show.html.erb
and that works once the id is passed.
I want to add a link in the profile to go to the url /users/[:id]
but I can't get it to work. I've tried:
match 'users/:id', :to 'users#show', :as => :profile
but I get error saying no action show.
Can anyone give me some advice to get a link to route to their profile.