Last Updated: February 25, 2016
·
664
· weapp

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