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

Fix rails4 asset_paths issues #2400

Merged
merged 1 commit into from
Sep 6, 2013

Conversation

DavidBennettPIO
Copy link
Contributor

This is the pull request for #2399, Please add comments there :)

@@ -93,7 +93,7 @@
<% @resources.each do |resource| -%>
<% resource_linked = (resource.url == params[:current_link]) unless params[:current_link].blank? %>
<li<%= ' class="linked"'.html_safe if resource_linked %>>
<%= link_to "#{resource.title}.#{resource.ext}", asset_paths.compute_public_path(resource.url, ''),
<%= link_to "#{resource.title}.#{resource.ext}", resource.url,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to use asset_path(resource.url) so that it can generate proper link in case config.action_controller.asset_host is set and I'm pretty sure asset_paths.compute_public_path was used for the same reason.

Also see c2db883

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, does this not need to be compatible with 3.2? That would make it easy.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, not even slightly 👍

ugisozols added a commit that referenced this pull request Sep 6, 2013
@ugisozols ugisozols merged commit 27c082b into refinery:rails4 Sep 6, 2013
@ugisozols
Copy link
Member

Thanks @complistic-gaff!

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

Successfully merging this pull request may close these issues.

3 participants