Hey there, I'm super new to Ruby on Rails. Currently I'm currently working on an e-commerce project. (I'm building it for practice). My website has buyers and sellers. Each seller has their own page. How can set it up where you can see all the items listed by on seller on their page?
Here is my listings controller: def shop @listings = Listing.where(seller: User.find(params[:id,])) @user = User.find(params[:id]) end URL in my config/routes.rb get '/shop/:id' => 'listings#shop', as: 'shop' -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fd88c9e1-eb40-4822-be65-0f3047fa8cf0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.