Sha256: d19f21e995f8fd11450befe54decf9bdcffcf59a3715ab51cf78ded9b22b4227
Contents?: true
Size: 451 Bytes
Versions: 7
Compression:
Stored size: 451 Bytes
Contents
# frozen_string_literal: true class StatesController < ApplicationController before_action :set_breadcrumbs def index @states = if @division @division.states.order(:name) else USGeo::State.not_removed.order(:name) end end def show @state = USGeo::State.find(params[:id]) add_breadcrumb(state_id: @state) end private def set_breadcrumbs add_region_breadcrumb add_division_breadcrumb end end
Version data entries
7 entries across 7 versions & 1 rubygems