@Kris, @tomcocca
I did the above snippet as tomcocca showed, but I had one serious problem. The problem was that when I ran rake db: drop db: create db: migrate, rails would throw errors because the table was not initialized yet.
The second problem was that when you defined such a model, you need to subsequently define each field. therefore, only the “description” is displayed in this case, unless you add other fields.
Regarding the first problem, the author of this gem answered my problem and wrote:
Ruby on rails, run the method on server 2.3. Maybe this should be included in RailsAdmin? Can you work with a tensile request?
re: pull request (working on it)
but this solution works for both of my problems:
config.models do fields_of_type :text do ckeditor true end end
Thus, ckeditor is loaded into all my text fields, plus all the other model fields, plus I do not understand the problem with rake db: drop db: create ...
jdkealy
source share