views:

399

answers:

1
+1  Q: 

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.... help please

+2  A: 

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

<%= f.tinymce :descripcion %>
bensie