Easy A
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

Share
 

 Subdirectory controllers

View previous topic View next topic Go down 
AuthorMessage
MyLife
Member
Member
MyLife

Posts : 4
Join date : 2011-04-17

Subdirectory controllers Empty
PostSubject: Subdirectory controllers   Subdirectory controllers EmptyWed May 11, 2011 11:16 pm

am trying to make a controller called Categories have subdirectories such as Fridges, Backpacks etc. Currently my setup works so that when browsing to 'categories/fridges/index', the index page from the fridge view page is shown. I want this page to appear when navigationg to 'categories/fridges'. Currently that page shows: "The action 'show' could not be found for CategoriesController".

I have set up my routing like so:

map.namespace :categories do |categories|
categories.resources :fridges
end

I have also tried matching '/fridges' to 'fridges#index' within the namespace but to no avail.
Back to top Go down
h4k4r
Member
Member
h4k4r

Posts : 2
Join date : 2011-04-17

Subdirectory controllers Empty
PostSubject: Re: Subdirectory controllers   Subdirectory controllers EmptyWed May 11, 2011 11:17 pm

you can buy interesting tablets such viagra, cialis etc

Unemployment and impotence problems are major causes of depression and suicide in men.
Back to top Go down
 

Subdirectory controllers

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» Rails controllers - 1 for every model?
» multiple controllers in one view (rails)

Permissions in this forum:You cannot reply to topics in this forum
Easy A :: Subdirectory controllers Edit-trash Useless :: Trash-