How to store HTML tags into DB
I'm using Tiny Mce Editor 4.0.5.
new.html
<% form_for @custom, :url=>"create" do |c| -%>
<%= c.text_area 'description' %>
<%= c.submit %>
<% end %>
Create Action:
@custom = CustomReport.create(params[:custom_report][:description])
After submission of form I get
undefined method `stringify_keys!'
Along that I tried
@custom = CustomReport.create(:description =>
params[:custom_report][:description])
But it doesn't store any HTML tags, so how I can store tags along to my DB?
No comments:
Post a Comment