Rails.application.routes.draw do

  get 'kontakt' => 'home#contact'
  get 'dotacja/:id' => 'home#show'
  get 'home/search'
  post 'home/search'
  resources :home, only: %i[index show]
  devise_for :users
  resources :company_sizes
  resources :expenses
  resources :tags
  resources :company_activities
  resources :projects
  resources :partners
  resources :experts
  get 'dotations/activate'
  post 'dotations/activate'
  resources :dotations
  namespace :settings do
    resources :users
  end
  get 'welcome/index'
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  root 'home#index'
end
