nacho10f
nacho10f

Reputation: 5886

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

Upvotes: 1

Views: 2139

Answers (1)

bensie
bensie

Reputation: 5403

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

<%= f.tinymce :descripcion %>

Upvotes: 2

Related Questions