开发者

TinyMCE and rails

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜