BBYIDX::Application.routes.draw do
  root :to => "home#index"

  devise_for :users
  # resources :users

  match '/index'    => 'home#index',    via: 'get',   :as => :home_index
  match '/about'    => 'home#about',    via: 'get',   :as => :home_about
  match '/contact'  => 'home#contact',  via: 'get',   :as => :home_contact

  resources :ideas

  # Example resource route with options:
  #   resources :products do
  #     member do
  #       get 'short'
  #       post 'toggle'
  #     end
  #
  #     collection do
  #       get 'sold'
  #     end
  #   end

  # Example resource route with sub-resources:
  #   resources :products do
  #     resources :comments, :sales
  #     resource :seller
  #   end

  # Example resource route with more complex sub-resources:
  #   resources :products do
  #     resources :comments
  #     resources :sales do
  #       get 'recent', on: :collection
  #     end
  #   end

  # Example resource route with concerns:
  #   concern :toggleable do
  #     post 'toggle'
  #   end
  #   resources :posts, concerns: :toggleable
  #   resources :photos, concerns: :toggleable

  # Example resource route within a namespace:
  #   namespace :admin do
  #     # Directs /admin/products/* to Admin::ProductsController
  #     # (app/controllers/admin/products_controller.rb)
  #     resources :products
  #   end
end

BBYIDX::Application.routes.draw do
  root :to => "home#index"

  devise_for :users
  # resources :users

  match '/index'    => 'home#index',    via: 'get',   :as => :home_index
  match '/about'    => 'home#about',    via: 'get',   :as => :home_about
  match '/contact'  => 'home#contact',  via: 'get',   :as => :home_contact

  resources :ideas do
    resources :comments
  end

  # Example resource route with options:
  #   resources :products do
  #     member do
  #       get 'short'
  #       post 'toggle'
  #     end
  #
  #     collection do
  #       get 'sold'
  #     end
  #   end

  # Example resource route with sub-resources:
  #   resources :products do
  #     resources :comments, :sales
  #     resource :seller
  #   end

  # Example resource route with more complex sub-resources:
  #   resources :products do
  #     resources :comments
  #     resources :sales do
  #       get 'recent', on: :collection
  #     end
  #   end

  # Example resource route with concerns:
  #   concern :toggleable do
  #     post 'toggle'
  #   end
  #   resources :posts, concerns: :toggleable
  #   resources :photos, concerns: :toggleable

  # Example resource route within a namespace:
  #   namespace :admin do
  #     # Directs /admin/products/* to Admin::ProductsController
  #     # (app/controllers/admin/products_controller.rb)
  #     resources :products
  #   end
end

Add comments as a child resource of ideas.
Add comments as a child resource of ideas.
