using ckeditor gem with rails nested attribute -


has been able use ckeditor gem (https://github.com/galetahub/ckeditor/issues/98) attached form builder object in nested form?

gemfile:

gem 'rails', '3.2.1' .... gem "nested_form" gem "ckeditor", "3.7.0.rc3" 

i extracted problem simple nested forms application, i.e.

post.rb:

has_many :comments accepts_nested_attributes_for :comments 

so try use ckeditor edit comments. view looks this:

<%= nested_form_for(@post) |f| %>  <%= f.label :post_content %>  <%= f.text_area :post_content %> <%= f.fields_for :comments |cf| %> <%= cf.cktext_area :comment_content %> <% end %> .... 

a normal text area appears comment content. if switch "f.text_area" in post part of form "f.cktext_area" ckeditor appears post content.

no errors appear in log when form rendered.

am missing something?

did generate ckeditor files with:

rails generate ckeditor:models --orm=active_record --backend=paperclip 

Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -