Results comments of TrungNT

I have the same problem

Here is my code. it the same for edit and new ``` ```

``` class AssignmentsController < ApplicationController load_and_authorize_resource def create respond_to do |format| if @assignment.save @class_room = @assignment.class_room end format.js end end def show end def edit @class_room = @assignment.class_room respond_to do...

``` class ClassRoomsController < ApplicationController load_and_authorize_resource def index end def new end def create end def show @students = @class_room.user_classes.where owner: false @user_class = @class_room.user_classes.new @assignment = @class_room.assignments.new end def...

create.js ``` $("#assignments #error_explanation").remove() $("iframe").contents().find("body").empty(); $("#assignments #errors-create-assignment"). html("") $("#assignments form#new_assignment")[0].reset(); $("#new-assignment-modal").closeModal(); $("#assignments .tbody").html(""); set_timetout() ``` edit.js ``` $(".assignment-").append(""); $("#edit-assignment-modal").openModal(); ```

it the same, nothing changes

It raises error `Cannot read property 'getEditor' of undefined`

In assets/javascrpits/application.js ``` // This is a manifest file that"ll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this...

In form create. Inspect element i can this ``` Rich Text Editor, textareaEditor toolbarsDocument&nbsp;Source&nbsp;Save&nbsp;New Page&nbsp;Preview&nbsp;Print&nbsp;TemplatesClipboard/Undo&nbsp;Cut&nbsp;Copy&nbsp;Paste&nbsp;Paste as plain text&nbsp;Paste from Word&nbsp;Undo&nbsp;RedoEditing&nbsp;Find&nbsp;Replace&nbsp;Select All&nbsp;Spell Check As You TypeForms&nbsp;Form&nbsp;Checkbox&nbsp;Radio Button&nbsp;Text Field&nbsp;Textarea&nbsp;Selection Field&nbsp;Button&nbsp;Image Button&nbsp;Hidden FieldBasic...

it lost `div id=cke_textarea"`