Class: Gemgento::CountriesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Gemgento::CountriesController
- Defined in:
- app/controllers/gemgento/countries_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
6 7 8 9 |
# File 'app/controllers/gemgento/countries_controller.rb', line 6 def index @countries = Country.all.includes(:regions) respond_with @countries end |
#show ⇒ Object
11 12 13 14 |
# File 'app/controllers/gemgento/countries_controller.rb', line 11 def show @country = Country.find(params[:id]) respond_with @country end |