Class: D3Maps::StatesController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



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