galetahub/ckeditor — Issue #98: Nested form - editor for nested attribute appearing as normal text area
Author: mark100net
Created: 2012-03-10 01:32:01+00:00
State: open

I am trying to use ck_editor in a nested form. I extracted the problem to a very simple nested forms application (posts accepts_nested_attributes_for comments). I want to use the ckeditor to edit comments. The view looks like this:

<%= nested_form_for(@post) do |f| %>

<%= f.label :post_content %>

<%= f.text_area :post_content %>

<%= f.fields_for :comments do |cf| %>
<%= cf.cktext_area :comment_content %>
<% end %>
....

A normal text area appears for the comment content. If I switch the "f.text_area" in the post part of the form to "f.cktext_area" the ckeditor appears for the post content.

Am I missing something?

Thanks.