All threads / Texteditor

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Texteditor

Artem Kiryanov asked in General

Hello! Can yoy help me? I have Ruby 2.1.3 and Rails 4.1.7. I use gem ( https://github.com/spohlenz/tinymce-rails ) and I do everything as it says, but i when paste this code:

<%= tinymce %>
in my _form, i have error:
Psych::SyntaxError in Posts#new
(): mapping values are not allowed in this context at line 8 column 20.

How can I fix this problem?

Pysch is a YAML parser. Have you checked your .yml files to make sure you don't have any syntax errors in them?

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 34,885+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.