Class: Admin::TemplateController
- Inherits:
-
AdminController
- Object
- AdminController
- Admin::TemplateController
- Defined in:
- app/controllers/admin/template_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
2 3 4 5 |
# File 'app/controllers/admin/template_controller.rb', line 2 def index @template = params[:template].to_s.gsub(/[^a-z0-9\/]/, '_') render layout: nil end |