Note that there are some explanatory texts on larger screens.

plurals
  1. PORails Tiny Mce text_area params empty
    primarykey
    data
    text
    <p>As you can see here in my rails log my text_area text is empty:</p> <pre><code>Started POST "/admin/tags/3" for 127.0.0.1 at 2011-04-28 08:24:39 +0200 Processing by Admin::TagsController#update as HTML Parameters: {"utf8"=&gt;"Ô£ô", "authenticity_token"=&gt;"X9LoKGw2OXE/rXBor7YxEKJmxpe BM0hq+u7q1NiPbtE=", "tag"=&gt;{"name"=&gt;"vind billetter", "title"=&gt;"Vind billetter Ô Çô Deltag i konkurrencer om billetter", "keywords"=&gt;"", "meta"=&gt;"", "h1"=&gt;"Vind billetter ÔÇô Deltag i konkurrencer om billetter", "text"=&gt;""}, "commit"=&gt;"Updat e Tag", "id"=&gt;"3"} ←[1m←[36mKonkurrancer Load (0.0ms)←[0m ←[1mSELECT `konkurrancers`.* FROM `kon kurrancers`←[0m ←[1m←[35mCACHE (0.0ms)←[0m SELECT `konkurrancers`.* FROM `konkurrancers` ←[1m←[36mCACHE (0.0ms)←[0m ←[1mSELECT `konkurrancers`.* FROM `konkurrancers`← [0m ←[1m←[35mTag Load (0.0ms)←[0m SELECT `tags`.* FROM `tags` ←[1m←[36mAdmin Load (1.0ms)←[0m ←[1mSELECT `admins`.* FROM `admins` WHERE (`a dmins`.`id` = 1) LIMIT 1←[0m ←[1m←[35mTag Load (0.0ms)←[0m SELECT `tags`.* FROM `tags` WHERE (`tags`.`cach ed_slug` = '3') LIMIT 1 ←[1m←[36mSQL (0.0ms)←[0m ←[1mSELECT sluggable_id FROM slugs WHERE ((slugs.slu ggable_type = 'Tag' AND slugs.name = '3' AND slugs.sequence = 1))←[0m ←[1m←[35mTag Load (0.0ms)←[0m SELECT `tags`.* FROM `tags` WHERE (`tags`.`id` = 3) LIMIT 1 ←[1m←[36mSQL (0.0ms)←[0m ←[1mBEGIN←[0m ←[1m←[35mSlug Load (1.0ms)←[0m SELECT `slugs`.* FROM `slugs` WHERE (`slugs`.s luggable_id = 3 AND `slugs`.sluggable_type = 'Tag') ORDER BY id DESC LIMIT 1 ←[1m←[36mSQL (0.0ms)←[0m ←[1mCOMMIT←[0m Redirected to http://localhost:3000/admin/kategoris/3 Completed 302 Found in 207ms </code></pre> <p>My form: </p> <pre><code> &lt;%= simple_form_for(@kategori, :url =&gt; {:action =&gt; 'update', :id =&gt; @kategori.id }) do |f| %&gt; &lt;%= f.text_area :text, :cols =&gt; 80, :rows =&gt; 20, :class =&gt; 'mceEditor' %&gt; &lt;%= f.button :submit %&gt; &lt;% end %&gt; </code></pre> <p>My tiny_mce.yml :</p> <pre><code># Here you can specify default options for TinyMCE across all controller theme: advanced editor_selector: tinyMce plugins: - layer - save theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen", theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage", theme_advanced_toolbar_location : "top" theme_advanced_toolbar_align : "left" theme_advanced_statusbar_location : "bottom" theme_advanced_resizing : true </code></pre> <p>My applikation controller:</p> <pre><code>uses_tiny_mce(:options =&gt; { :theme =&gt; 'advanced', :theme_advanced_toolbar_location =&gt; "top", :theme_advanced_toolbar_align =&gt; "left", :editor_selector =&gt; "mceEditor", :skin =&gt; 'o2k7', :skin_variant =&gt; 'silver', :theme_advanced_resizing =&gt; true, :theme_advanced_statusbar_location =&gt; "bottom"}) </code></pre> <p>My tags controller:</p> <pre><code>uses_tiny_mce :options =&gt; { :theme =&gt; 'simple'} </code></pre> <p>The text_area text is not submitted in both the update and create action</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload