Class: Gemgento::CountriesController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



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

def index
  @countries = Country.all.includes(:regions)
  respond_with @countries
end

#showObject



11
12
13
14
# File 'app/controllers/gemgento/countries_controller.rb', line 11

def show
  @country = Country.find(params[:id])
  respond_with @country
end