Sha256: d8b23d42ec16351503d74bf3d8034ff41306da39287f19ff9d58e502f89cd86d
Contents?: true
Size: 371 Bytes
Versions: 16
Compression:
Stored size: 371 Bytes
Contents
module Gaku class StatesController < GakuController 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') else @states = State.all end respond_with @states end end end
Version data entries
16 entries across 16 versions & 3 rubygems