tsechingho / ckeditor-rails

Integrate CKEditor javascript library with Rails asset pipeline
https://github.com/tsechingho/ckeditor-rails
MIT License
213 stars 134 forks source link

Install fail #10

Closed Sega100500 closed 11 years ago

Sega100500 commented 11 years ago

After bundle install

1)

ruby@debian:~/projects/bulkin$ rake update-ckeditor VERSION=4.0 rake aborted! Don't know how to build task 'update-ckeditor' /home/ruby/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in eval' /home/ruby/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in

' (See full trace by running task with --trace)

2)

"NetworkError: 404 Not Found - http:/bulkin.ru:3000/assets/ckeditor/init.js"

tsechingho commented 11 years ago

The rake action update-ckeditor is only for gem maintainer or forked ckeditor-rails project to use.

The general user, like you, should use bundler to install ckeditor-rails.

bundle install will have the lastest version for you.

Sega100500 commented 11 years ago

But isn't work. I try to use it in Engine, where path '/admin' I use it in ajax-content

and:

2)

"NetworkError: 404 Not Found - http:/bulkin.ru:3000/assets/ckeditor/init.js"

tsechingho commented 11 years ago

ooh, you use in rails engine, it's another story.

simply say, you should define following in your xxx.gemspec

gem.add_dependency 'ckeditor-rails'

and require in your engine.rb

require 'ckeditor-rails'

and you can have the assets in your dummy app or host app.

also try to see my https://github.com/tsechingho/simple-pages-rails for example.