### Include kindeditor javascripts for assets pipeline in your application.js:

“‘ruby

//= require kindeditor

“‘

### Usage:

“‘ruby

1. <%= kindeditor_tag :content, 'default content value' %>
   # or <%= kindeditor_tag :content, 'default content value', :width => 800, :height => 300 %>
   # or <%= kindeditor_tag :content, 'default content value', :allowFileManager => false %>

“‘

“‘ruby

2. <%= form_for @article do |f| -%>
     ...
     <%= f.kindeditor :content %>
     # or <%= f.kindeditor :content, :width => 800, :height => 300 %>
     # or <%= f.kindeditor :content, :allowFileManager => false %>
     ...
   <% end -%>

“‘

That’s all.