hi i have application where it has beer on it, beer inside the beercase can be assorted im bit struggling in how to show the information of specific beer inside a beer case currently i listed the all the beers inside the beercase of the drinker so i have a list of beer partial _beerlist <h1>beer you added</h1> <% @drinker.beercase_line_items.each do |beer|%> <p><%= link_to beer.beer.name, specificbeer_drinker_drinker_beercase_pages_path(@drinker) %></p> <%end%> i tried doing this but <h1>beer you added</h1> <% @drinker.beercase_line_items.each do |beer|%> <p><%= link_to beer.beer.name, specificbeer_drinker_drinker_beercase_pages_path(@drinker,beer) %></p> <%end%> it gives me a `beer.20` at the middle of the url not `beer/20` which i wanted for him to produce just wondering if im doing this right? **routes** resources :drinker do resources :pages do collection do get :beercaselist # name of beercase that can be added example:extrabucket-beercase get :beercase #show the beercase information and it has a link to add beer end end resources :drinker_beercase # controller to add what beercase that the drinker added resources :drinker_beercase_pages do #static page controller collection do get :beerlist # show the beerlist get :specificbeer # show the specificbeer end end resources :beercase_line_items #controller to add what beer and what beercase end -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.