class SimpleForm::FormBuilder

TODO: remove this after a while, SimpleForm::FormBuilder#ckeditor is deprecated.

Public Instance Methods

ckeditor(attribute_name, options={}, &block) click to toggle source
# File lib/ckeditor/hooks/simple_form.rb, line 15
def ckeditor(attribute_name, options={}, &block)
  warn "[DEPRECATION] calling f.ckeditor(:#{attribute_name}, ...) is deprecated, call f.input(:#{attribute_name}, :as => :ckeditor, #{options.to_s[1..-1]}) #{Kernel.caller.first}"
  options[:as] = :ckeditor
  self.input(attribute_name, options, &block)
end