I have legacy rails 3 app, where I need to modify a page to use tinymce to edit a text_area. There are existing pages in this app that already use tinymce. For reasons I cannot go into here, I cannot use any of the tinymce plugins that are available.
Now my problem is as follows. I have a model called Sections, that has two attributes, section_name and html. I want to be able to edit the html using tinymce. My view has a form which is as follows
<%= form_for @section , :url => update_section_path , :method => :put do |f| %>
<%= f.hidden_field :id %>
<%= f.label :section_name , "Section Name" %>
<%= f.text_field :section_name %> <br />
<%= f.label :html, "Html" %>
<%= f.text_area :html %>
<%= f.submit "Update" %>
<% end %>
The form appears as expected. The TinyMCE editor also appears on the page with the original html. The problem is that when I click on the Update button, the put query sent to my server, does not contain the new modified content of the Html text_area. It sends back the original text that was in that text_area.
Could anyone help me understand why.
Thanks in advance
=Puneet