the numbers are random strings (current time??) added in development to
force a reload of js and css files...
otherwise some browsers will cache the files...
its my undestanding that this is only in effect in development
On Friday, April 07, 2006, at 5:01 PM, szymek wrote:>Hi!
>
>This:
><%= javascript_include_tag :defaults %>
><%= stylesheet_link_tag ''doitwithstyle'' %>
>
>generates this:
><script src="/javascripts/prototype.js?1144418901"
>type="text/javascript"></script>
><script src="/javascripts/effects.js?1144418901"
>type="text/javascript"></script>
><script src="/javascripts/dragdrop.js?1144418901"
>type="text/javascript"></script>
><script src="/javascripts/controls.js?1144418901"
>type="text/javascript"></script>
><script src="/javascripts/application.js?1144418901"
>type="text/javascript"></script>
><link href="/stylesheets/doitwithstyle.css?1144421253"
media="screen"
>rel="Stylesheet" type="text/css" />
>
>What are these numbers? I installed rails 1.1.1 (linux) today and
i''ve
>got it on every rails page. I''m not sure if it was before.
Everything
>works ok, just the generated code looks weird.
>
>BTW. I''ve got warnings about RAILS_GEM_VERSION already defined
somewhere
>else (one definition is in environment.rb). Should i do something about
>it or just leave it?
>
>--
>Posted via http://www.ruby-forum.com/.
>_______________________________________________
>Rails mailing list
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails
Mikkel Bruun
www.strongside.dk - Football Portal(DK)
ting.minline.dk - Buy Old Stuff!(DK)
--
Posted with http://DevLists.com. Sign up and save your mailbox.