-
Notifications
You must be signed in to change notification settings - Fork 133
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
Rails template using absolute paths makes checking on local more difficult #146
Comments
@CodeMeister to run it locally as a rack app you can run the following command:
Turbolinks 5 requires these paths to be absolute. Maybe things will change in Turbolinks 6 |
@p8 That makes sense. Many thanks for the quick response 👍 |
Hi ! |
@sofianegargouri Maybe it would work if change the rel_prefix to your prefix.. |
@p8 but this break turbolinks, no? |
@DiegoOrejuela Sounds good! |
@p8 is it open to PR? |
@DiegoOrejuela Sure! |
@p8 Well, I have some bad news. Actually in local it does not work. It worked for me because I had not noticed that when I open the index from Rubymine what it does is serve it in a kind of server, but when going directly to the file in my file system it fails. So I decided to create a simple rake server to serve it, following the example of the config.ru in this gem. With this, then I don't really see the 'rel_prefix' thing working. Thank you anyway. |
@DiegoOrejuela Thanks for having a look. 👍 I'll try to have a stab at it as well.. |
The latest release uses relative paths making it work locally as well. |
The rails template in 2.0.2 is using absolute paths for resources and pages:
This works great for a web-server, but it's a problem when developing and you want to check the documentation by loading
index.html
directly in a browser.Will you consider reverting the paths to be relative again?
The text was updated successfully, but these errors were encountered: