Module: Quill::Rails::ViewHelpers

Defined in:
lib/quill/rails/view_helpers.rb

Instance Method Summary collapse

Instance Method Details

#quill_editor(options = {}) ⇒ Object

A link helper to create a ‘default’ Quill text edit



11
12
13
# File 'lib/quill/rails/view_helpers.rb', line 11

def quill_editor(options={})
  ERB.new(File.read(File.join(source_root, 'template.html.erb'))).result(binding).html_safe
end

#source_rootObject



6
7
8
# File 'lib/quill/rails/view_helpers.rb', line 6

def source_root
  File.dirname(__FILE__) + '/templates'
end