Sha256: d4363815c49efaaa340febb160b50de1a3bc0b807e696d16f8503e712021d38c
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
== kindeditor for rails3 == Installation gem install rails_kindeditor After you install rails_kindeditor and add it to your Gemfile, you need to run the generator: rails generate rails_kindeditor:install The generator will copy kindeditor to your application. When you are done, you are ready to add migration using the generator: rails generate rails_kindeditor:migration The generator will copy migration to your application. When you are done, remember run rake db:migrate: rake db:migrate Don't forget add this to your Gemfile gem "carrierwave", "~> 0.5.4" gem "rails_kindeditor" == Usage Basically include <%= include_kindeditor_if_needed %> under the <head> element of your in your layout file: <%= include_kindeditor_if_needed %> In your controller, use include_kindeditor method to load kindeditor javascript: include_kindeditor You can load kindeditor javascript only in some action if you needed: include_kindeditor :only => [:new, :edit] include_kindeditor :except => [:index, :show, :destroy, :create] Assign your textarea with id :id => "kindeditor_id" You can config kindeditor by rails_kindeditor-init.js file: public/javascripts/kindeditor/kindeditor-init.js == License MIT License. Copyright 2011
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_kindeditor-0.0.2 | README.rdoc |