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

change rails route? #218

Open
fakefarm opened this issue Jun 7, 2017 · 1 comment
Open

change rails route? #218

fakefarm opened this issue Jun 7, 2017 · 1 comment

Comments

@fakefarm
Copy link

fakefarm commented Jun 7, 2017

Hello,

Today's my first day using LSG and I must say the quality of work is very impressive! Thank you for creating a great product. One question is if I am able to easily change the url in Rails (from /assets/styleguide to simply /styleguide). I've looked in both here and Rails syntax in routes.rb but haven't found anything.

Thanks again!

@hagenburger
Copy link
Member

Thank you! I’m glad to hear this.

There’s no standard way to change the URL in the way you want to do it. You could try:

  • Setting a proxy URL in the routes.rb
  • Moving the file after deploy on the server
  • It’s possible to rename the assets folder to anything (e. g. styleguide) and place and use index.html.lsg as the style guide’s name. But this would move all assets.

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