similar to: rails_asset_id, query strings, and browser caching

Displaying 20 results from an estimated 600 matches similar to: "rails_asset_id, query strings, and browser caching"

2011 Mar 16
1
Help overriding rescue_action_in_public in Rails 3
In Rails 2.3.x, you can override render_optional_error_file like so: # ApplicationController.rb protected def render_optional_error_file(status_code) render :template => "errors/500", :status => 500, :layout => ''application'' end However, Rails 3 no longer has render_optional_error_file. Instead, you need to overriderescue_action_in_public, which I do:
2007 Dec 01
3
Rails 2 problem with compute_public_path
I''m trying to migrate to Rails 2, but keep getting these errors all over the place: ActionView::TemplateError: wrong number of arguments (2 for 3) On line #61 of users/new.rhtml 58: <% if @captcha_error -%><div class="fieldWithErrors">< % end -%> 59: <table class="signup"><tr> 60: <td
2006 Sep 20
17
Newbie : What is the number Rails adds in images URL, etc?
If I write : <%= image_tag "rails.png" %> I get in HTML : <img alt="Rails" src="/images/rails.png?1158095722" /> What is the number at the end of the src tag ? What is it for ? Thanks :). Nicolas. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to
2006 Jun 01
0
JS / CSS ressource files and query strings for caching
Rails appends query strings to ressource files for intelligent browser caching (only updating browser cache when files get channged) But this article ( http://www.thinkvitamin.com/features/webapps/serving-javascript-fast ) says the following: At this point, you might ask why we don''t just add a query string to the end of the resource - /css/main.css?v=4. According the letter of the
2003 Aug 25
0
Grandstream firmware update. {HTTP error}
Looks like Mozilla forgives that problem you are talking about too.. I have had no problems configuring the GS phones using Mozilla on RH9.. > -=> On Sun, 24 Aug 2003 09:47:06 -0400 (EDT), John Vozza <john@netrom.com> said: > > > Just noticed that version 1.0.3.81 has been released on the > > Grandstream website. > > Doh. I see they still haven't decided
2006 Jan 04
1
[BUG?] image_tag
i''ve got the latest ruby and rails on this box and am seeing that image_tag will turn something like /foo/bar.jpg into /foo/foo/bar.jpg in the following situation: /ror/foo/public /var/www/html/foo -> /var/ror/foo/public/ image_tag("/foo/bar.jpg") this is exactly how compute_public_path is written to work: def compute_public_path(source, dir, ext)
2006 May 23
3
image_tag problem
Hiall, I want to make an image_tag from within a controller in order to be able to present a link (with a status image) in a view. Here is my controller method (in file webca_controller.rb, hence WebcaController) def untouched_status_image_tag image_tag("open", { :alt => "Offen", :title => "Offen", :size => "12x12", :class =>
2006 Aug 04
1
Rails to web analytics integration
Anyone have experience (or plugins) available for pulling web analytics into the rails environment? Our marketing folks want to combine the page view data together with our registration/activity info, not too different than advocated here: http://www.thinkvitamin.com/features/webapps/how-to-measure-the-success- of-your-web-app We''re using Apache 2/mongrel. Thanks.
2007 Jan 03
0
`ActionController::Base#render :nothing => true` still whines about "missing template"
In FooController, I put method #bar whose only purpose is to run some logic in the background and return a status 204 [1]. So in order to return only the 204 status code, I put at the end of #bar: `render :nothing => true, :status => 204` But then when surfing to /foo/bar, I get an error about "missing template bar.rhtml". Is this a bug? (The solution eventually was `render
2006 Aug 04
2
how to remove ID from stylesheet_link_tag?
When I use stylesheet_link_tag, the results come back with a timestamp ID, like this: <link href="/stylesheets/style.css?1154009736" media="screen" rel="Stylesheet" type="text/css" /> I don''t want the query string and ID on the end, but I can''t see how to disable this in the docs. How do I do this? thanks, jeff -- Posted via
2012 Sep 25
2
Help
Can you tell me how often is yp.xml updated? 2012/9/25 R?cker Thomas <thomas.ruecker at tieto.com> > Hi Renato, > > please subscribe to the mailing lists, so that you don't miss answers. > (Also please don't send HTML mail) > > > On 24/09/12 17:14, renato fringuello wrote: > >> Hi, my name is renato and I'm trying to develope a player for Icecast
2007 Jun 20
4
Remove session string from css and js file?
How do you remove the session string from the css and js file? I have already set the ApplicationController session :disabled => true Any suggestions or a site that already has this solution? Thank you, Nickmenow -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2012 Sep 27
2
Help
Hi, On 27/09/12 12:45, renato fringuello wrote: > I took some radios from yp.xml 2 days ago, but today someone (like > http://streaming207.radionomy.com/AngeFM) answers to me : > "The file you requested could not be found" > what's the problem? > They doesn't exist anymore? They are off now and they could be on later? Yes, yp.xml is a snapshot of the streams that
2008 Oct 28
7
How to override one method of AssetTagHelper
I created a file ./lib/action_view/helpers/asset_tag_helper.rb and put in it only the method I want to override. like this module ActionView module Helpers #:nodoc: module AssetTagHelper def image_path(source) compute_public_path(source, ''images'') end end end end But as soon I try this all the others methods from the overriden module are not
2007 Jun 17
1
actionmailer & picture
Hello I''m using action mailer to create an HMTL outbound email. This email renders a partial. In that partial, a call is made to a public location to get a picture for display in the email. When this email is generate, I get the following error (note: I''m sure it has something to do with not understanding the context of actionmailer and how it functions): NoMethodError in
2008 Feb 05
0
Asset IDs not changing in development environment?
Perhaps I''m completely missing something, but... It seems like ActionView::Helpers::AssetTagHelper#compute_public_path keeps a cache of all public paths along with the appended asset id. However, this means that applications (in this case, Facebook) that cache based on the name of the file will never pull the new file if it''s been modified. Would it make sense to either: (a)
2012 Sep 25
0
Help
Hi, On 25/09/12 15:46, renato fringuello wrote: > Can you tell me how often is yp.xml updated? > Currently the XML is updated roughly every 10 minutes. (which could change at any time really) Please notice though that polling every 10 minutes is NOT OK! I see some incredibly inefficient software being responsible for the majority of the load on the server. (Think thousands of users and
2012 Sep 27
0
Help
Ok thanks a lot. 2012/9/27 R?cker Thomas <thomas.ruecker at tieto.com>: > Hi, > > On 27/09/12 12:45, renato fringuello wrote: >> I took some radios from yp.xml 2 days ago, but today someone (like >> http://streaming207.radionomy.com/AngeFM) answers to me : >> "The file you requested could not be found" >> what's the problem? >> They
2017 Mar 07
0
[PATCH v4 9/9] Add a virt-builder-repository tool
virt-builder-repository allows users to easily create or update a virt-builder source repository out of disk images. The tool can be run in either interactive or automated mode. --- .gitignore | 3 + builder/Makefile.am | 81 ++++++- builder/repository_main.ml | 466 ++++++++++++++++++++++++++++++++++++ builder/test-docs.sh | 2
2012 Sep 28
1
Help
Hi again! I was thinking to get informations from the xspf file only if it has been modified. The problem is, when I try to obtain the date of the alteration (with CURL), I obtain dates like 1970-01-01 00:59:59 and they never change. How can I handle that problem? 2012/9/27 renato fringuello <rfringuello at gmail.com>: > Ok thanks a lot. > > 2012/9/27 R?cker Thomas