Dante icon indicating copy to clipboard operation
Dante copied to clipboard

"Cannot load such file -- coffee_script" for Rails 7

Open Bishwas-py opened this issue 3 years ago • 0 comments

I am trying to install Dante Rails on our open-source Rails app called Deviser Club. The web app is currently using custom-made TipTap editor with Stimulus JS.

I got this issue while booting the edit page.

LoadError in PostsController#edit
cannot load such file -- coffee_script

manifest.js

// changing the editor
//= require 'dante'
//= require sanitize
//= require underscore

Gemfile


gem "dante-editor"
gem 'underscore-rails'
gem 'rails-sanitize-js'

application.scss

@import "dante";

views/posts/edit.html.erb

    <div id="editor editable" >
      <%= @post.body %>
    </div>

Also, I wanna know how can we get the text value from the editor to our rails app.

Bishwas-py avatar Aug 11 '22 13:08 Bishwas-py