peclik / clipboard_image_paste

Redmine plugin for pasting cropped image from clipboard as an attachment.
264 stars 118 forks source link

RoutingError (No route matches [OPTIONS] "/plugin_assets/clipboard_image_paste/stylesheets" #66

Closed bashforever closed 7 years ago

bashforever commented 7 years ago

Hi!

We are on redmine 3.3. and using v1.10 of your plugin. It works great but usage throws in the redmine-logfile following error: ActionController::RoutingError (No route matches [OPTIONS] "/plugin_assets/clipboard_image_paste/stylesheets"): actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:incall' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in call'

(and so on).

But nevertheless it works. The "stylesheets" folder is located in the subfolder "assets" (and not plugin_assets) and thus cannot be found by this route.

Existing folder: _/opt/redmine/redmine/plugins/clipboard_imagepaste/assets

Is there any need or way to fix that? Can we simply rename "assets" to "plugin_assets" or does this break something else:

Thanks a lot

B4E

kozhurin commented 7 years ago

On my Redmine 3.3.3 I had to create manually /public/plugin_assets/clipboard_image_paste folder and copy there folders from /plugins/clipboard_image_paste/assets to make it work properly.

peclik commented 7 years ago

Installation of 1.11 works flawlessly on Redmine 3.3