I’m super new to RoR. I’ve been working on an eCommerce project for
practice. Currently my website has buyers and sellers. Each seller has
I’m trying to figure out how to show each seller’s listings on their
personal page. I don’t know what to put in my controller
Here’s what I got so far:
@listings = Listing.where(seller: User.find(params[:id,]))
@user = User.find(params[:id])
I hope that I’m making sense.