How to install rails_tiny_mce in Rails2.3.10

I have tried followed the guide in https://github.com/sandipransing/rails_tiny_mce/tree/rails_2.x,but
failed.I suggest the newest plugin in git://github.com/sandipransing/rails_tiny_mce.git
only support Rails3.0.How to install in Rails2.3.10?

This is the error trace.
./script/generate rails_tiny_mce_migration
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.10/lib/active_support/
dependencies.rb:466:in `load_missing_constant': uninitialized constant
TinyMCE::OptionValidator (NameError)
  from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.10/lib/
active_support/dependencies.rb:106:in `const_missing'
  from /Volumes/test/vendor/plugins/rails_tiny_mce/init.rb:2:in
`evaluate_init_rb'
  from /Library/Ruby/Gems/1.8/gems/rails-2.3.10/lib/rails/plugin.rb:
158:in `evaluate_init_rb'
  from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.10/lib/
active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
  from /Library/Ruby/Gems/1.8/gems/rails-2.3.10/lib/rails/plugin.rb:
154:in `evaluate_init_rb'
  from /Library/Ruby/Gems/1.8/gems/rails-2.3.10/lib/rails/plugin.rb:
48:in `load'
  from /Library/Ruby/Gems/1.8/gems/rails-2.3.10/lib/rails/plugin/
loader.rb:38:in `load_plugins'
  from /Library/Ruby/Gems/1.8/gems/rails-2.3.10/lib/rails/plugin/
loader.rb:37:in `each'
  from /Library/Ruby/Gems/1.8/gems/rails-2.3.10/lib/rails/plugin/
loader.rb:37:in `load_plugins'
  from /Library/Ruby/Gems/1.8/gems/rails-2.3.10/lib/initializer.rb:
369:in `load_plugins'
  from /Library/Ruby/Gems/1.8/gems/rails-2.3.10/lib/initializer.rb:
165:in `process'
  from /Library/Ruby/Gems/1.8/gems/rails-2.3.10/lib/initializer.rb:
113:in `send'
  from /Library/Ruby/Gems/1.8/gems/rails-2.3.10/lib/initializer.rb:
113:in `run'
  from /Volumes/test/config/environment.rb:9
  from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
  from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`require'
  from /Library/Ruby/Gems/1.8/gems/rails-2.3.10/lib/commands/
generate.rb:1
  from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
  from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`require'
  from ./script/generate:3

This constant may have changed when they went to Rails 3. This is what I suggest you try doing.

  1. uninstall/delete the plugin you have from your vendors folder for rails_tiny_mce

  2. run the following to install the plugin from the branch rails 2.x

./script/plugin install --branch rails_2.x git://[github.com/sandipransing/rails_tiny_mce.git](http://github.com/sandipransing/rails_tiny_mce.git)

  1. run the migration command
./script/generate rails_tiny_mce_migration

Let us know how it goes.

B.

The follow install command run failed:
./script/plugin install --branch rails_2.x git://github.com/sandipransing/rails_tiny_mce.git
Plugin not found: ["rails_2.x", "git://github.com/sandipransing/
rails_tiny_mce.git"]

I try to download the plugin for rails 2.x in the page
https://github.com/sandipransing/rails_tiny_mce/tree/rails_2.x,
extract the file and copy to my vendors folder.Bute the migration
command run error still.

Jaron,

I've played around with the TinyMCE plugins for Rails 2, 3 and every
time I've found it to be MUCH easier to just download the files from
http://tinymce.moxiecode.com/download/download.php, drop them in your
public folder and you should be good to go.

I think my syntax was wrong. Try it this way.

./script/plugin install git://github.com/sandipransing/rails_tiny_mce.git -r rails_2.x

B.

Jaron,

I’ve played around with the TinyMCE plugins for Rails 2, 3 and every

time I’ve found it to be MUCH easier to just download the files from

http://tinymce.moxiecode.com/download/download.php, drop them in your

public folder and you should be good to go.

I agree with kwiest,
Its much easier to simply download the files in public folder, and use them as you want to.
I am myself using TinyMCE in one of my applications, and its pretty easy to go.

You just need to create an attribute of type text, for your required model, and simply use TinyMCE without any problems.

It's right.I install the plugin using follow command:
./script/plugin install git://github.com/sandipransing/rails_tiny_mce.git
-r rails_2.x
./script/generate rails_tiny_mce_migration
rake db:migrate
./script/plugin install git://github.com/aaronchi/jrails.git
rake rails_tiny_mce:plugins
rake rails_tiny_mce:install

Why don't I use the original TinyMCE for Rails? Because it can't
upload image and media, but the rails_tiny_mce default support it.

Hi,

rails_tiny_mce works with rails 2.3.10 use rails_2.x branch.

https://github.com/sandipransing/rails_tiny_mce/tree/rails_2.x