Sha256: 50106cf85d36ff12e79cbb3924f7ccece2d44d192ea06a33e70131f378f33e68
Contents?: true
Size: 500 Bytes
Versions: 1
Compression:
Stored size: 500 Bytes
Contents
module RedisMonitor module Controllers class ContentController < BaseController include RedisMonitor::Helpers::LayoutsHelper SECTION = 'content' def index(params = {}) haml 'content/index'.to_sym, layout: main_layout, locals: {section: SECTION} end def search(params = {}) results = Backend.search(params[:key]) haml 'content/search'.to_sym, layout: main_layout, locals: {results: results, section: SECTION} end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redis_monitor-0.0.5 | lib/controllers/content_controller.rb |