Class: Gemgento::RegionsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Gemgento::RegionsController
- Defined in:
- app/controllers/gemgento/regions_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
6 7 8 9 10 |
# File 'app/controllers/gemgento/regions_controller.rb', line 6 def index @regions = Region.all respond_with @regions end |
#show ⇒ Object
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 |