The following are the routes for what you want, but map them to :index and :show from CharitiesController and DonorsController :
namespace :profiles do # Actions: charities#index and charities#show resources :charities, :only => [:index, :show] # Actions: donors#index and donors#show resources :donors, :only => [:index, :show] end
When it is more appropriate to set up custom routes, something like this:
get 'profiles/charities', :to => 'profiles#charities_index' get 'profiles/charities/:id', :to => 'profiles#charities_show' get 'profiles/donors', :to => 'profiles#donor_index' get 'profiles/donors/:id', :to => 'profiles#donor_show'
Below are the relevant sections of the guide in which you went:
source share