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:inconst_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:inevaluate_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:inevaluate_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:inload_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:inload_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:inprocess’
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:inrun’
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:inrequire’
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:inrequire’
from ./script/generate:3

On Thu, Mar 10, 2011 at 2:16 AM, jaron [email protected] wrote:

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)

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

  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.

On Thu, Mar 10, 2011 at 5:34 PM, kwiest [email protected] wrote:

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.

On Thu, Mar 10, 2011 at 11:14 AM, jaron [email protected] wrote:

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 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.

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

On Fri, Mar 11, 2011 at 4:26 AM, Jatin kumar
[email protected]wrote:

The follow install command run failed:
On Mar 10, 11:39 pm, Bryan C. [email protected] wrote:
I

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


sαη∂ιρ Rαηѕιηg


blog www.funonrails.com
twitter @sandipransing
skype sandip.ransing

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs