So I have a bands table, a festivals table and a bands_festivals table. I am having trouble accesing the show page of the bands_festivals table. This is my routes file:
Ejemplo::Application.routes.draw do
resources :bands_festivals
resources :festivals do
resources :band_festivals
end
resources :bands do
resources :band_festivals
end
As other people suggested, but I still get the following error:
No route matches {:action=>"show", :controller=>"band_festivals", :id=>#'<'BandFestival band_id: 2, festival_id: 1, year: 1, created_at: "2013-11-20 19:24:38", updated_at: "2013-11-20 19:24:38">}
If you would like to look at my controllers they are here: The "create new entry" page on a many-to-many-relationship