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

Add *_url helpers to get the full assets URL #4875

Merged
merged 1 commit into from
Feb 5, 2012

Conversation

sikachu
Copy link
Member

@sikachu sikachu commented Feb 3, 2012

Adds image_url, javascript_url, stylesheet_url, audio_url, video_url, and font_url to assets tag helper. These URL helpers will return the full path to your assets. This is useful when you are going to reference this asset from external host.

@fabianoalmeida
Copy link

Really useful! 👍

@sikachu
Copy link
Member Author

sikachu commented Feb 4, 2012

Urgh. Please don't merge this yet. I forgot to write doc for those methods.

@sikachu
Copy link
Member Author

sikachu commented Feb 4, 2012

Ok, commit updated with documentation. @josevalim can you review this?

Adds `image_url`, `javascript_url`, `stylesheet_url`, `audio_url`,
`video_url`, and `font_url` to assets tag helper. These URL helpers will
return the full path to your assets. This is useful when you are going
to reference this asset from external host.
@sikachu
Copy link
Member Author

sikachu commented Feb 4, 2012

@josevalim I've rebased it again. Now it should merged cleanly.

josevalim pushed a commit that referenced this pull request Feb 5, 2012
Add *_url helpers to get the full assets URL
@josevalim josevalim merged commit a9bebae into rails:master Feb 5, 2012
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.

None yet

3 participants