Rails - tinymce-rails-imageupload configuration -
i'm using rails 4 , tinymce 4 , gem tinymce-rails-imageupload
i've gotten gem installed little trouble follows:
config/tinymce.yml
theme: "modern" toolbar1: bold italic | link uploadimage | undo redo | fontselect | forecolor | code | plugins: - link - uploadimage - textcolor - code
the problem when try upload image computer message:
bad response server
and server logs say:
actioncontroller::routingerror (no route matches [post] "/tinymce_assets")
is there way around without creating new controller/table tinymce? don't need store images. if not, point me towards tutorial setting controller? there's example on gems readme knowledge of ror not strong enough me figure out how pass in required information myself.
generally, there little way around issue. not need create new "table" in database tinymce, either need new controller create action or latch on action on existing controller, bit messy.
here's github repository has source code demo (the author of gem wrote demo, it's good), has pretty need : https://github.com/perfectlynormal/tinymce-rails-imageupload-demo. uses paperclip actual upload of images (which require table).
Comments
Post a Comment