When Redmine loads plugins, it adds the default views directory of each - app/views
- to the global Rails view path. The catch is it does not use the actual directory on disk - it assumes a plugin is located plugins/<name>
, where <name>
is the argument you use to Redmine::Plugin.register
.
This means that if your init.rb
looks like:
Redmine::Plugin.register :cool_stuff do
...
But your plugin's directory is actually redmine_cool_stuff
, the code will load and execute but the views will not be found.
Solution: Make sure the argument to Plugin.register
is the same as the name of your directory in the redmine plugins
directory.