Want to change Ckeditor Model name...

29 views
Skip to first unread message

Saravanan P

unread,
Nov 10, 2012, 2:33:23 AM11/10/12
to rubyonra...@googlegroups.com
Hi

I am using rails 3.2.8

I am using Ckeditor and these generating model 'pictures' and 'attachment_files' for storing images.( app/model/ckeditor/picture.rb)
I already have Pictures (app/model/picture.rb) model and have 100 more datas. 
Problem is While i try to access my picture model that make error like below

app/models/ckeditor/picture.rb to define Picture
from /home/saravanan/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:490:in `load_missing_constant'
from /home/saravanan/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:181:in `block in const_missing'
from /home/saravanan/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:179:in `each'
from /home/saravanan/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:179:in `const_missing'

How can change Ckeditor picture model name... 
ckeditor gem just generate " mount Ckeditor::Engine => '/ckeditor' " in my routes

I can solve it by changing my picture model name but it painful. and i am used that model in many controller, models and views.

Please say, is there any way to change ckeditor model name....
Reply all
Reply to author
Forward
0 new messages