I have managed to get fckeditor working, kind of, using the posts in the activescaffold google group. But, I have one major problem - the column comes through with the wrong name so it never gets into my model:
I have a column called content. Here is the _content_form_column.rhtml:
<dl>
<dt>
<label for="record[content]"><%=h column.label -%></label>
</dt>
<dd>
<% if request.xhr? -%>
<%= fckeditor_textarea("record", "content", :id => "record[content]",
:toolbarSet => 'Default', :width => '600px', :height => '400px', :ajax => true) -%>
<% else -%>
<textarea id="record_content" name="record[content]"><%=h @record.body -%></textarea>
<% end -%>
</dd>
</dl>
If seems the fckeditor plugin will ignore the :id passed in and will create the fck-friendly "record_id_content_editor" name. How am I supposed to get the data from this into my model using active scaffold?
Here is what gets posted:
Parameters: {"commit"=>"Create", "language"=>"en-GB", "action"=>"create", "iframe"=>"true", "controller"=>"article", "record_image"=>{"uploaded_data"=>""}, "record__content_editor"=>"<p>content</p>", "record"=>{"feature"=>"false", "end_date"=>"25 January 2008 11:11", "start_date"=>"16 January 2008 11:10", "language"=>"en-GB", "headline"=>"Test", "author"=>"Phil", "content"=>"", "publish"=>"false", "footer"=>""}}
So for a new record there is no id.
Does anyone actually use this stuff????
I have a column called content. Here is the _content_form_column.rhtml:
<dl>
<dt>
<label for="record[content]"><%=h column.label -%></label>
</dt>
<dd>
<% if request.xhr? -%>
<%= fckeditor_textarea("record", "content", :id => "record[content]",
:toolbarSet => 'Default', :width => '600px', :height => '400px', :ajax => true) -%>
<% else -%>
<textarea id="record_content" name="record[content]"><%=h @record.body -%></textarea>
<% end -%>
</dd>
</dl>
If seems the fckeditor plugin will ignore the :id passed in and will create the fck-friendly "record_id_content_editor" name. How am I supposed to get the data from this into my model using active scaffold?
Here is what gets posted:
Parameters: {"commit"=>"Create", "language"=>"en-GB", "action"=>"create", "iframe"=>"true", "controller"=>"article", "record_image"=>{"uploaded_data"=>""}, "record__content_editor"=>"<p>content</p>", "record"=>{"feature"=>"false", "end_date"=>"25 January 2008 11:11", "start_date"=>"16 January 2008 11:10", "language"=>"en-GB", "headline"=>"Test", "author"=>"Phil", "content"=>"", "publish"=>"false", "footer"=>""}}
So for a new record there is no id.
Does anyone actually use this stuff????

Re: [ruby] FCKEditor and ActiveScaffold?
this thread is about a month old however I am trying to achieve the same thing, use fckeditor with active scaffold in the same manner you described.
Have you, or anyone else find a solution to this problem?
Re: [ruby] FCKEditor and ActiveScaffold?
http://groups.google.com/group/activesc ... 0dd7aa065e