I got a config/routes.rb file like this:
map.resources :categories, :shallow => true do |cat| cat.resources :entries, :member => {:yes => :post, :no => :post } end
My goal is use yes and no as buttons that modify my entries (it is like a game, and yes and no are answers to the entries).
I would like that when I click on yes or no I will go back to category/:category_id/entries , because there is where I have the pretty layout, etc.
The problem is that I got to the yes method from entries/:entry_id So I lost the category id this entry is in and I dont know how to get a link to the category.
I guess I can try without using :shallow parameter so I got the full path but I am probably going to go further in the hierarqui (entries may have comments) and I want to learn with this simple problem how to manage this situation.