Class: Spree::StatesController

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

Instance Attribute Summary

Attributes included from Core::ControllerHelpers

#title

Instance Method Summary collapse

Methods included from Core::ControllerHelpers

#access_forbidden, included

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