Class: Gemgento::RegionsController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
8
9
10
# File 'app/controllers/gemgento/regions_controller.rb', line 6

def index
  @regions = Region.all

  respond_with @regions
end

#showObject



12
13
14
15
16
# File 'app/controllers/gemgento/regions_controller.rb', line 12

def show
  @region = Region.find(params[:id])

  respond_with @region
end