Answer the question
In order to leave comments, you need to log in
I can't connect redactor-rails, what's wrong?
Install this gem https://github.com/SammyLin/redactor-rails
Everything is going well up to this point:
For each textarea that you want to use with Redactor, add the "redactor" class and ensure it has a unique ID:
<%= text_area_tag :editor, "", :class => "redactor", :rows => 40, :cols => 120 %>
<%= f.text_field :body %><br>
<%= f.text_field :body, :class => "redactor" %><br>
Answer the question
In order to leave comments, you need to log in
Most likely, the fact is that the editor works with textarea, and
<%= f.text_field :body, :class => "redactor" %><br>
returns normal input <%= f.text_area :body, :class => "redactor" %>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question