views:

25

answers:

2

Just like the title says :

 = image_tag @organization.logo.url(:cropped)

I want this to appear as

<img src="picture.jpg?23412341234" />
+1  A: 

Isn't this already the default in Rails?

That's called an asset timestamp and should reflect the latest time that the asset was modified.

Ryan Bigg
I'm reading the documentation and that seems true, but its never been turned on for any of my apps I've ever built. What am I missing?
Trip
A: 

Check if you have something as follows in your configuration files (environment.rb, development.rb ...). This line of code disables asset timestamps.

ENV['RAILS_ASSET_ID'] = ''
Hoa
Hmm nothing in my config files that say this.
Trip