ruby-on-railssimple-form

Using Trix editor with Simple Form


I'm using the gem 'trix' for the Trix editor with Simple Form. This is what I did in my form:

<%= f.input :body, as: :trix_editor %>

and I get "No input found for trix_editor". The documentation for the gem only talks about using it with Formtastic. Any help will be appreciated.


Solution

  • Following should work

    <%= f.trix_editor :body %>