Sha256: 8692c205f7d5ebb7e42d9ebbcf0363e0a88d191d73ba9920e06019cd26db6944
Contents?: true
Size: 304 Bytes
Versions: 1
Compression:
Stored size: 304 Bytes
Contents
module Gemgento class CountriesController < ApplicationController respond_to :json, :html def index @countries = Country.all.includes(:regions) respond_with @countries end def show @country = Country.find(params[:id]) respond_with @country end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemgento-2.8.0 | app/controllers/gemgento/countries_controller.rb |