开发者

TinyMCE and rails

开发者 https://www.devze.com 2022-12-10 06:56 出处:网络
I am a rails n00b. I want to use tinyMCE instead of a textarea that got created automatically via scaffolding.

I am a rails n00b. I want to use tinyMCE instead of a textarea that got created automatically via scaffolding. so Im using tinyMCE hammer. the scaffolding automatically created this line

<%= f.text_area :descripcion %>

and I substituted it with

<%= tinymce(:descripcion) %>

When I load the view it looks just fine but when I try to submit the descripcion field of my model object is null.开发者_JS百科... help please


You need to keep the f. if you're in a form_for block:

<%= f.tinymce :descripcion %>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号