Actions
Defect #13140
closedRedmine doesn't find plugin settings partial
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Cant reproduce
Affected version:
Description
I'm trying to fix the redmine-gitolite plugin https://github.com/ivyl/redmine-gitolite to work with Redmine 2.2.2.stable.
I get a 404 page when trying to open the settings page. The error is:
ActionView::MissingTemplate: Missing partial gitolite_settings/redmine_gitolite_settings with {:locale=>[:it, :en], :formats=>[:html], :handlers=>[:erb, :builder, :rsb]}. Searched in:
* "/home/tommyblue/Devel/redmine/app/views"
from /home/tommyblue/.rvm/gems/ruby-1.9.3-p374@redmine/gems/actionpack-3.2.11/lib/action_view/path_set.rb:58:in `find'
The init.rb file declares:
settings({
:partial => 'gitolite_settings/redmine_gitolite_settings',
:default => {
'gitoliteUrl' => 'gitolite@localhost:gitolite-admin.git',
'developerBaseUrls' => "git@example.com:%{name}.git",
'readOnlyBaseUrls' => 'http://example.com/git/%{name}',
'basePath' => '/home/redmine/repositories/',
}
})
It seems redmine isn't looking for the partial in the plugin views folder. I tried changing the name (to eventually avoid name conflicts) but the error remains.
I think I'm following all the instructions in the Redmine docs. Am I missing something or it's a bug?
Actions