I recently updated Rails to version 3.1.
Here is the part where I added:
<%= asset_path('logo_symbol.png') %>
This displays /assets/logo_symbol.png , which works fine in a development environment. However, when I click the creation code on the hero, it shows a broken image with the URL: assets/logo_symbol-135ddc8db2c9b59f032bed7db520137a.png . I assume that the new name is associated with some optimization.
However, it is interesting to note that when I go to assets/logo_symbol-135ddc8db2c9b59f032bed7db520137a.png url on production, I see a blank page, but when I change this url to something random, for example, adding numbers to it, it shows the page not found, It is so clear that he finds something at this url. It also shows a blank page when I go to /assets/logo_symbol.png directly to production / heroku.
If this is any help, the hero will not be precompiled successfully when I click on the code, and heroku documentation says that there is currently no work for this problem.
Any help on this would be greatly appreciated.
I suppose this has something to do with some environment related configuration. I am adding the contents of my application.rb, development.rb and production.rb files
here is the contents of my production.rb file
# Settings specified here will take precedence over those in config/application.rb
and here is the contents of my development.rb file
# Settings specified here will take precedence over those in config/application.rb
Here is the contents of my production.rb file
# Settings specified here will take precedence over those in config/application.rb
I have mapped my configuration files with the rails documentation for 3.1 and it looks like I need all the defaults. However, I still do not see the image. Any help would be greatly appreciated