Sha256: 448bba241434a5237d11c85b537683615e399686833b7e1d5ddac27f86757478
Contents?: true
Size: 408 Bytes
Versions: 10
Compression:
Stored size: 408 Bytes
Contents
module Gaku module Admin class StatesListController < Admin::BaseController respond_to :js, :json def index if params[:country_id] @country = Country.find(params[:country_id]) @states = State.where(country_iso: @country.iso).order('name asc') @state = Preset.state else @states = State.all end end end end end
Version data entries
10 entries across 10 versions & 2 rubygems