Can not save data via wysiwyg field in RefineryCMS form (Rails 4) -



Can not save data via wysiwyg field in RefineryCMS form (Rails 4) -

ruby 2.0 rails 4.1

we using newest version of refinerycms.

we added new extension. trying add together wysiwyg field called "final_comments". created database migration , ran it. in database records like:

id: 5 user_id: 16 program_id: 1 created_at: 2015-04-09 20:17:00 completed_at: 2015-04-09 21:15:00 is_active: 0 certificate_id: null position: null updated_at: 2015-04-09 21:25:46 is_completed: 0 final_comments: null

i add together form:

<%= render '/refinery/admin/wysiwyg', :f => f, :fields => [:final_comments], :object => "enrollments/enrollment" -%>

i html:

<div class='field'> <div id='page-tabs' class='clearfix ui-tabs ui-widget ui-widget-content ui-corner-all'> <ul id='page_parts'> <li class='ui-state-default ui-state-active'> <a href="#final_comments">final comments</a> </li> </ul> <div id='page_part_editors'> <div class='page_part' id='final_comments'> <textarea class="visual_editor widest" id="enrollment_final_comments" name="enrollment[final_comments]" rows="20"> </textarea> </div> </div> </div> </div>

the form works other fields, not one. thinking perhaps got "object" attribute wrong, have tried dozen variations , i've been unable work.

this file:

vendor/extensions/programs/app/models/refinery/programs/enrollment.rb

consists of:

module refinery module programs class enrollment < refinery::core::basemodel belongs_to :user belongs_to :program # def title created automatically because didn't specify string field # when ran refinery:engine generator. <3 <3 refinery cms. def title self.user.full_name + ": " + self.program.name end belongs_to :certificate, :class_name => '::refinery::resource' # enable admin searching, add together acts_as_indexed on searchable fields, example: # # acts_as_indexed :fields => [:title] end end end

as said, other fields seem work, whatever type final_comments field, nil saved database. missing?

ruby-on-rails refinerycms

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -