Sha256: 8bad7f4616194b42fcf6fed89f50e52b096a511ec49784d7f94e0bade2f01585

Contents?: true

Size: 274 Bytes

Versions: 1

Compression:

Stored size: 274 Bytes

Contents

module Gemgento
  class RegionsController < ApplicationController

  respond_to :json, :html

    def index
      @regions = Region.all

      respond_with @regions
    end

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

      respond_with @region
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gemgento-2.8.0 app/controllers/gemgento/regions_controller.rb