Class: Admin::AdminController
- Inherits:
-
Tolaria::TolariaController
- Object
- ApplicationController
- Tolaria::TolariaController
- Admin::AdminController
- Defined in:
- app/controllers/admin/admin_controller.rb
Instance Method Summary collapse
Instance Method Details
#help_link ⇒ Object
14 15 16 17 18 19 |
# File 'app/controllers/admin/admin_controller.rb', line 14 def help_link @help_link = Tolaria.help_links.find do |help_link| help_link.slug == params[:slug] end or raise ActiveRecord::RecordNotFound return render tolaria_template("help/help_link") end |
#markdown ⇒ Object
9 10 11 12 |
# File 'app/controllers/admin/admin_controller.rb', line 9 def markdown return head(404) unless current_administrator.present? return render(inline:Tolaria.render_markdown(request.raw_post)) end |