Sha256: c2211489a3a3b612672b166376867b62dfb601410eea7042cdc232dad0d6d006

Contents?: true

Size: 517 Bytes

Versions: 7

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true

class ZctasController < ApplicationController
  before_action :set_breadcrumbs

  def show
    @zcta = USGeo::Zcta.find(params[:id])
    add_breadcrumb(zcta_id: @zcta)
  end

  private

  def set_breadcrumbs
    add_region_breadcrumb
    add_division_breadcrumb
    add_state_breadcrumb
    add_county_breadcrumb
    add_combined_statistical_area_breadcrumb
    add_core_based_statistical_area_breadcrumb
    add_metropolitan_division_breadcrumb
    add_urban_area_breadcrumb
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
us_geo-2.1.1 explorer_app/app/controllers/zctas_controller.rb
us_geo-2.1.0 explorer_app/app/controllers/zctas_controller.rb
us_geo-2.0.4 explorer_app/app/controllers/zctas_controller.rb
us_geo-2.0.3 explorer_app/app/controllers/zctas_controller.rb
us_geo-2.0.2 explorer_app/app/controllers/zctas_controller.rb
us_geo-2.0.1 explorer_app/app/controllers/zctas_controller.rb
us_geo-2.0.0 explorer_app/app/controllers/zctas_controller.rb