Patch Rich for works on Rails 4
If you install now Rich with Rails 4 the paths of assets are broken.
After install rich as instructions at:
https://github.com/bastiaanterhorst/rich
Put this lines on "config/routes.rb"
App::Application.routes.draw do
get "/assets/ckeditor/icons.png", to: redirect("/assets/ckeditor/plugins/icons.png")
get "/ckeditor/:filename.:ext", to: redirect("/assets/ckeditor/%{filename}.%{ext}"), constraints: {filename: /.*/}
get "/ckeditor-contrib/:filename.:ext", to: redirect("/assets/ckeditor-contrib/%{filename}.%{ext}"), constraints: {filename: /.*/}
...
end
Written by Manuel Albarran
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#