Class: Gaku::Admin::StatesListController
- Inherits:
-
BaseController
- Object
- CoreController
- BaseController
- Gaku::Admin::StatesListController
- Defined in:
- app/controllers/gaku/admin/states_list_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/gaku/admin/states_list_controller.rb', line 7 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 |