-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add base_path option to include asset methods #7
Conversation
inject(&:+) | ||
end | ||
|
||
def include_ember_stylesheet_tags(name) | ||
def include_ember_stylesheet_tags(name, base_path=nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Surrounding space missing in default value assignment.
@@ -15,6 +15,12 @@ | |||
expect(page).to have_javascript_rendered_text | |||
end | |||
|
|||
scenario "rendering with asset helpers and absolute base_path from `/relative/`" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [85/80]
@seanpdoyle Is there any chance this could be merged? |
Yes, please! I wish it would do this automatically, but at least this gives me a way to fix the base URL problem. :) |
@jboler thanks for opening this pull request -- sorry for the delay! I'm sorry, but I don't understand the current implementation doesn't work for you -- would you mind explaining how it doesn't support your use case? cc: @franzliedke |
It's a path relative to the current URL, not the site's base URL. |
@franzliedke I understand the new functionality, but I don't understand the use case. Given the following situations:
In what ways do your use cases not fit into one of those scenarios? |
See my issue: #6 |
Huh? How does that help me when I render the ember_script_tags both on /foo/ and on /foo/bar/? |
@jboler thanks for the clarification -- I understand now. Instead of extending this gem to further monkey with the EmberCLI-generated URLs, would you be able to achieve the same thing by prepending asset URLs with the absolute path during EmberCLI's asset compilation? |
@franzliedke thanks for mentioning that you're rendering script tags on both Could you please elaborate further on how you're trying to use the gam, and the ways in which the current implementation falls short so that I can better understand your problem and possibly offer an alternative solution? |
@seanpdoyle I can't do that during asset compilation because (as noted in the issue) the Also, my Rails app has many different URLs where I need the same Ember app to load so I need |
Merged in 23f9425. Thanks! |
@seanpdoyle We had poltergeist/capybara-based test that were failing using the Looking forward to a new gem version published with this fix. Thanks for supporting this project for the community! |
@skylar @jboler this is part of the |
@seanpdoyle thanks! 👍 |
Ignore previous comments - I got the specs working after looking at the travis config.