Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't change root path? #48

Open
woodardj opened this issue Aug 22, 2016 · 1 comment
Open

Can't change root path? #48

woodardj opened this issue Aug 22, 2016 · 1 comment

Comments

@woodardj
Copy link

If I change the wiki_root '/wiki' to, say wiki_root '/docs', I get an error from the page actions partial "undefined local variable or method `wiki_all_path' for…"

Looks like the actual path helper is set to docs_all… is there a way to change this in config?

@daniel-sullivan
Copy link

daniel-sullivan commented Feb 22, 2017

Hi, this isn't a fix but it may help:

wikibase = 'documentation'

wiki_root "#{wikibase}"

Irwi.config.system_pages.each do |page_action, page_path| # Adding routes for system pages
get("#{wikibase}/#{page_path}", {controller: 'wiki_pages', root: wikibase}.merge(action: page_action.dup, as: "wiki_#{page_path}"))
end

Add that to routes.rb and replace 'documentation' with your path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants