easy-fckeditor
easy-fckeditor copied to clipboard
Models inside namespace
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
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