I was having this same issue when upgrading a 2.3.12 app to 3.1 and
adding Greg's suggestion

config.assets.digest = true

to production.rb fixed it for me.

Thanks!


On Sep 8, 9:00 am, Greg Reinacker <[email protected]> wrote:
> Do you have
>
> config.assets.enabled = true
>
> in your application.rb or elsewhere, and
>
>   config.assets.digest = true
>
> In your production.rb?
>
> -GR
>
> On Sep 8, 2011, at 9:56 AM, Joshua Partogi wrote:
>
>
>
>
>
>
>
> > Hi there,
>
> > So I am using Rails 3.1.0 in production. However the asset link that is 
> > produced is:
> > <link type="text/css" rel="stylesheet" media="screen" 
> > href="/stylesheets/application.css">
>
> > Instead of:
> > <link type="text/css" rel="stylesheet" media="screen" 
> > href="/assets/application-md5hash.css">
>
> > I am using this config line in application.rb, which means my css is 
> > precompiled
> > Bundler.require *Rails.groups(:assets => %w(development test))
>
> > What am I missing here?
>
> > Thank you for your help.
>
> > --
> > @jpartogi
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Ruby on Rails: Talk" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to