Sha256: b704a81afa1f7517852e4b2070abfc0237d75a7fba577a65c37859f9976b126e
Contents?: true
Size: 702 Bytes
Versions: 6
Compression:
Stored size: 702 Bytes
Contents
require_dependency "publish_my_data/application_controller" module PublishMyData class ThemesController < ApplicationController respond_to :html, :ttl, :rdf, :nt, :json def index # don't bother paginating this for now - there probably wont be that many themes @themes = Theme.all.resources respond_with(@themes) end def show @theme = Theme.by_slug(params[:id]) if @theme @pagination_params = PaginationParams.from_request(request) @datasets = Paginator.new(@theme.datasets_criteria, @pagination_params).paginate respond_with(@datasets) else raise Tripod::Errors::ResourceNotFound end end end end
Version data entries
6 entries across 6 versions & 1 rubygems