Rails 3.1 Asset Pipeline in the Real World
blog.nodeta.com
Rails 3.1 Asset Pipeline in the Real World
1–6 of 6 posts
Re: Rails 3.1 Asset Pipeline in the Real World
#2I believe the preferred method it is to generate your CSS with ERB, using the asset_path method. Though hopefully someone can correct me if I'm wrong.
Re: Rails 3.1 Asset Pipeline in the Real World
#3The article states that only the filename needs to be passed for CSS url() resources. However, using that method, there appears to be no means to append the MD5 to the precompiled asset filename while in production. The result is an unnecessary trip to the application to generate the asset, bypassing the compiled assets completely. I believe the preferred method it is to generate your CSS with ERB, using the asset_pa…
Re: Rails 3.1 Asset Pipeline in the Real World
#4The article states that only the filename needs to be passed for CSS url() resources. However, using that method, there appears to be no means to append the MD5 to the precompiled asset filename while in production. The result is an unnecessary trip to the application to generate the asset, bypassing the compiled assets completely. I believe the preferred method it is to generate your CSS with ERB, using the asset_pa…
ERB helpers seem to be the only way currently.
Re: Rails 3.1 Asset Pipeline in the Real World
#5Re: Rails 3.1 Asset Pipeline in the Real World
#6Good read and really love that assets are first-class citizens in Rails. A little off topic, but can anyone point me in the direction of some resources on the biggest changes from 3.0.x to 3.1? Working on an upgrade now and have only played with 3.0.x and would like to know what to expect moving on up to 3.1. Thanks.
http://weblog.rubyonrails.org/2011/5/22/rails-3-1-release-ca...