easy-fckeditor icon indicating copy to clipboard operation
easy-fckeditor copied to clipboard

Models inside namespace

Open introkun opened this issue 15 years ago • 1 comments

Controller: @obj = Admin::Article.new

View: fckeditor_textarea("admin_article", "header" ...) -> Error: uninitialized constant AdminArticle fckeditor_textarea("article", "header" ...) -> generates <textarea .. name='article[header]'> and standart rails helpers -> <input ... name="admin_article[title]" /> and nothing updates

introkun avatar Apr 21 '09 18:04 introkun

I have a similar problem but it is not related to namespaces. I have an admin namesspace and it works fine with just passing in the actual name of the class without any namespace stuff being needed.

I'm wondering if you are using a multi model form? This is what I am doing and I am experiencing the same problem as you.

The same object in a standard CRUD form in an admin area works fine for me but I have a situation where I am using accepts_nested_attributes_for And this appears to be the issue. I could be totally wrong as I have no idea how the objects are being manipulated.

I'm wondering if there is a workaround for this at all? I have voted for this isuue James

jamesw avatar Jun 16 '09 16:06 jamesw