I Want to Create an Individual User Shop Page
On my home page I have all listings from all users. When I click on a listing I'm currently taken to the show page for that listing that shows the name of the user, the description, and the "buy now" button, etc.. I'd like to be able to click on the name of the user from the show page and go to a shop page for that user that lists all of the items from that same user. Then like the home page I want to still be able to click on a listing in the shop page and view the show page so that I can purchase the item from the shop page as well as from the home page.
I've created a new page called "shop.html.erb". I need help with what to put in my routes.rb file, my listings_controller file, and finally what should the 'link_to' be on the show page. Thanks in advance!
Posted about 5 years ago by