Closed majkinetor closed 11 years ago
You have to run migration for plugin. As noted in README
I did, somehow it didn't do anything, its behaving like its already having that migration installed.. I had it previously installed, then uninstalled, a year ago.
The new problem is that after hiding/restoring page I am redirected to blank screen where project name is added after the wiki like this.
http://redmine .... /my_project/wiki.my_project
It looks like something is bad with installation and I can reveret migration or add it the usual way.
How could I force removal and reinstall again?
majkinetor, _bundle exec rake redmine:plugins NAME=redmine_private_wiki VERSION=0 RAILSENV=production
But it will not help. :) I also have this issue with redmine 2.3 when redirecting to wiki.Page instead of wiki/Page
So as I see _redirect_to project_wikipath(@project, @page.title)
need to be changed to
_redirect_to project_wiki_pagepath(@project, @page.title)
at redmine_private_wiki/lib/private_wiki/wiki_controller_patch.rb
Can you create a pull request with some tests covering this bug?
On Thu, Apr 18, 2013 at 2:07 PM, Slava Komarov notifications@github.comwrote:
So as I see _redirect_to project_wikipath(@project https://github.com/project, @page.title)
need to be changed to
_redirect_to project_wiki_pagepath(@project https://github.com/project, @page.title)
at redmine_private_wiki/lib/private_wiki/wiki_controller_patch.rb
— Reply to this email directly or view it on GitHubhttps://github.com/f0y/redmine_private_wiki/issues/20#issuecomment-16568100 .
Best Wishes, Oleg Kandaurov
Oleg, I would be glad to do it, but I'm a not ruby developer, just a system administrator. So I have a lack of knowledge in it.
Ок, fine. Is this a proven solution? In other words, does your solution work?
On Thu, Apr 18, 2013 at 2:22 PM, Slava Komarov notifications@github.comwrote:
Oleg, I would be glad to do it, but I'm a not ruby developer, just a system administrator. So I have a lack of knowledge in it.
— Reply to this email directly or view it on GitHubhttps://github.com/f0y/redmine_private_wiki/issues/20#issuecomment-16568672 .
Best Wishes, Oleg Kandaurov
Yes, it works fine with renaming to project_wiki_page_path. I simple grep'ed redmine directory and did not find anything like _project_wikipath, but only _project_wiki_pagepath, so I thought that it should work for redmine_private_wiki. :) Thanks for your plugin. It's useful. Spasibo :)
nezachto =)
On Thu, Apr 18, 2013 at 2:28 PM, Slava Komarov notifications@github.comwrote:
Yes, it works fine with renaming to project_wiki_page_path. I simple grep'ed redmine directory and did not find anything like project_wikipath, but only project_wiki_pagepath, so I thought that it should work for redmine_private_wiki. :) Thanks for your plugin. It's useful. Spasibo :)
— Reply to this email directly or view it on GitHubhttps://github.com/f0y/redmine_private_wiki/issues/20#issuecomment-16568917 .
Best Wishes, Oleg Kandaurov
You are welcome!
EDIT:
For some reason migration didn't go?! I had to manually add column to wiki_pages