Class: D3Maps::StatesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- D3Maps::StatesController
- Defined in:
- app/controllers/states_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'app/controllers/states_controller.rb', line 3 def index @states = State.all respond_to do |format| format.html format.json {render :json => @states.all } end end |