How to have a linkable user/seller?

I would like to create some seller page where we can see all the listings of that user, but my question is not the creation of the page but rather how to link it to the page, as we already have the code to show the owner of the listing.

Posted over 5 years ago by CarlosLemos
Posted over 5 years ago by Alex Yang

As the seller page currently stands, you won't be able to do this. That's because the seller page isn't publicly accessible - it's only viewable to the currently signed in user. To correct this, you'll need to reconfigure the seller page to accept a parameter (likely a user_id), and then you'll be able to set up a route to the seller page.

0
Posted over 5 years ago by CarlosLemos

This is what I have <p><%= "Sold by #{listing.user.name { |t| link_to t, seller_path(t)} }" %></p> that of course don't work

0