Class: ToolsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/tools_controller.rb

Instance Method Summary collapse

Instance Method Details

#cleanupObject


2
3
4
5
6
7
# File 'app/controllers/tools_controller.rb', line 2

def cleanup
  if params[:html].present?
    b = Blog.new text_cleanup_rules: params[:rules]
    @result = b.cleanup_html(params[:html])
  end
end

#indexObject


9
# File 'app/controllers/tools_controller.rb', line 9

def index; end