rails3.2.3 使用rails_kindeditor
1.将下面代码加入Gemfile:
gem 'rails_kindeditor'
2.运行"bundle"命令:
bundle
3.安装Kindeditor,运行下面的代码:
rails generate rails_kindeditor:install
4.在app/assets/javascripts/application.js里面为assets pipeline加入以下代码:
//= require kindeditor(正行全部加进)
5.例子使用代码如下:
<div class="field">
<%= f.label :content %><br />
<%= f.kindeditor :content %> --直接使用kindeditor标签
</div>
更多内容请前往https://github.com/Macrow/rails_kindeditor
阅读READ.ME