Sha256: 29b0cd3cbaa99483655f3e4e03c70b32e928caa1a06607e92d318b521f943316
Contents?: true
Size: 390 Bytes
Versions: 1
Compression:
Stored size: 390 Bytes
Contents
require_dependency "ishapi/application_controller" module Ishapi class SitesController < ApplicationController def index @sites = Site.all end def show if params[:domain].include?(".json") domain = params[:domain][0...-5] else domain = params[:domain] end @site = Site.find_by :domain => domain, :lang => :en end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ishapi-0.1.3 | app/controllers/ishapi/sites_controller.rb |