Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion #asset_url helper method
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Scott Carleton  
View profile  
 More options Oct 18 2012, 7:44 pm
From: Scott Carleton <carleton.sc...@gmail.com>
Date: Thu, 18 Oct 2012 16:44:06 -0700 (PDT)
Local: Thurs, Oct 18 2012 7:44 pm
Subject: #asset_url helper method

Just putting this out there before I make a pull request.

Is there any interest in an asset_url method as a view helper?

It would work by using the config.action_controller.asset_host if it exists
and prepending this to the results of asset_path.

I have found this necessary when writing html emails and needing a full url
path for assets.  Since my CDN in the asset_host mirrors my assets in my
app it makes perfect sense.  Might not be a common enough use case to put
into core though.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.