Class: Spree::StatesController

Inherits:
StoreController show all
Defined in:
app/controllers/spree/states_controller.rb

Instance Method Summary collapse

Methods inherited from StoreController

#unauthorized

Methods included from Core::ControllerHelpers::Order

#after_save_new_order, #associate_user, #before_save_new_order, #current_order, included, #set_current_order

Methods included from Core::ControllerHelpers::Common

included

Methods included from Core::ControllerHelpers::Auth

#current_ability, included, #redirect_back_or_default, #store_location, #try_spree_current_user, #unauthorized

Instance Method Details

#indexObject



7
8
9
10
11
# File 'app/controllers/spree/states_controller.rb', line 7

def index
  # we return ALL known information, since billing country isn't restricted
  # by shipping country
  respond_with @state_info = Spree::State.states_group_by_country_id.to_json, :layout => nil
end