I’m currently trying to add widgEditor to a form in ruby on rails however whenever I hit submit I get the following error:
TypeError (expected Hash (got String) for param `content'
The form code is as follows:
<div class="field">
<%= f.label :content %><br />
<%= f.text_area :content, :cols => "20", :rows=>"4", :class=>"widgEditor" %>
</div>
<div class="actions">
<%= f.submit %>
</div>
has anyone got any experience with this issue?
Turns out it was submitting too many parameters from what I can tell. By adding $(this.theExtraInput).remove(); to the cleanSource function of widgEditor it now only submits the content field and works fine.