Sha256: b79ad21d86227374ee8b9c6ef122a3070b67e0e5abfc532db6e4d499367bec24

Contents?: true

Size: 1.57 KB

Versions: 7

Compression:

Stored size: 1.57 KB

Contents

# frozen_string_literal: true

Rails.application.routes.draw do
  root "home#index"

  controller :regions do
    get "regions", action: :index, as: :regions
    get "regions/:id", action: :show, as: :region
  end

  controller :divisions do
    get "divisions", action: :index, as: :divisions
    get "divisions/:id", action: :show, as: :division
  end

  controller :states do
    get "states", action: :index, as: :states
    get "states/:id", action: :show, as: :state
  end

  controller :combined_statistical_areas do
    get "csas", action: :index, as: :combined_statistical_areas
    get "csas/:id", action: :show, as: :combined_statistical_area
  end

  controller :core_based_statistical_areas do
    get "core_based_statistical_areas", action: :index, as: :core_based_statistical_areas
    get "core_based_statistical_areas/:id", action: :show, as: :core_based_statistical_area
  end

  controller :metropolitan_divisions do
    get "metropolitan_divisions", action: :index, as: :metropolitan_divisions
    get "metropolitan_divisions/:id", action: :show, as: :metropolitan_division
  end

  controller :urban_areas do
    get "urban_areas", action: :index, as: :urban_areas
    get "urban_areas/:id", action: :show, as: :urban_area
  end

  controller :counties do
    get "counties/:id", action: :show, as: :county
  end

  controller :county_subdivisions do
    get "county_subdivisions/:id", action: :show, as: :county_subdivision
  end

  controller :places do
    get "places/:id", action: :show, as: :place
  end

  controller :zctas do
    get "zctas/:id", action: :show, as: :zcta
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
us_geo-2.1.1 explorer_app/config/routes.rb
us_geo-2.1.0 explorer_app/config/routes.rb
us_geo-2.0.4 explorer_app/config/routes.rb
us_geo-2.0.3 explorer_app/config/routes.rb
us_geo-2.0.2 explorer_app/config/routes.rb
us_geo-2.0.1 explorer_app/config/routes.rb
us_geo-2.0.0 explorer_app/config/routes.rb