similar to: Page caching when name contains a dot (period)

Displaying 20 results from an estimated 6000 matches similar to: "Page caching when name contains a dot (period)"

2006 Jun 08
2
Page caching for urls with dots
hi everyone, I have a pesky problem with page caching, sorry if it sounds dummy. Whenever I''m caching an url like /controller/argument.with.dots instead of getting a saved page like /public/controller/arguments.with.dots.html I get /public/controller/arguments.with.dots which makes the webserver confused as to how to send it (it gets a Content-Type of text/plain instead of
2006 Feb 04
4
Page caching feeds and cache file extensions
I have a feeds controller which generates RSS and Atom pages. I put ''caches_page :show'' in it. The problem is that the pages are saved with an html extension. As a result, browsers display the cached feeds as HTML rather than XML, and feed validators complain. There''s an option to set ''Base.page_cache_extension'' globally, but I don''t want
2006 Feb 19
2
Asynchronous Encryption?
Hi Railers, I''m looking for something to do asynchronous encryption - where the encryption and decryption keys are different. This is for a scenario where I want to be able to store some information in the database that can only be decrypted in a different physical location using a secret private key (which will not be stored on the machine doing the encrypting). I''m trying
2006 Apr 04
1
"uninitialized constant Reloadable" error heads-up
I can''t duplicate this problem on my local machine, but also can''t find any mentions of it on the Gmane archive, so thought I''d just throw in a quick mention in case anyone else comes across it. On Textdrive, using gem rails 1.1, in an app that works fine on my local machine, I get the following error in my production.log: "uninitialized constant
2006 Apr 04
2
"script/server -e production" doesn''t work
I''ve got an error that''s only happening on my live webserver, so wanted to test on my local machine in the production environment. On my local machine, I tried to run... script/server -e production ... but get: server: invalid option: -e Has this been disabled or renamed in 1.1? I''m running gem Rails 1.1, Ruby 1.8.4, and the server is Lighttpd 1.3.16. Thanks,
2008 Sep 24
3
caches_page :if not executing (but caches_action :if) does
Hi folks - Seeing a weird problem and would love some help. It''s documented in http://pastie.org/278310 to be more readable. In short, I have a caches_page "action", :if => {stuff} but the :if is never being called - the action is just caching every time. (If I put a debugger call in the :if block, it never stops.) If I replace caches_page with caches_action, the if
2005 Nov 03
1
Builder / rxml views: hyphens in XML element names
I''m having a strange problem with an rxml view - it won''t let me put hyphens in the names of XML elements. The original problem line was: xml.VISA-SSL do But in any other place, if I insert a hyphen into the name of any arbitrary element, I get the following kind of error: undefined method `theTextAfterTheHyphen'' for #<#<Class:0xb7617180>:0xb7616f28>
2006 Mar 14
4
validates_confirmation_of has stopped working
Hi Railers, I''m past considering myself a noob in Rails land - I think what I''m up against here is more of a bug or an anomaly that I''m unaware of (or that has changed in a recent version). I had a fully working validates_confirmation_of :email_address field in my app - was one of the first things I set up, extremely simple, been working for a long time. Then one
2006 Apr 07
0
Double opt-in mailing list engine / gem?
Does anyone have any existing code for a double opt-in mailing list system based on Rails? Wouldn''t be hard for me to make one, but I don''t want to reinvent the wheel if someone else has already done it and published the code somewhere? It''s for one-way mailshots only. I don''t need to do much more than collect email addresses of interested people - if the
2005 Apr 27
3
caches_page questions
I''m attempting to use caches_page to speed up the loading of certain pages on my site, and have run into a couple questions: 1) The site has ''states'' (as in U.S. states), so I have a State model and a States controller. Going to http://sitename/states/ routes you to the States controller, ''index'' action. The States controller looks like so: class
2005 Sep 21
2
Date Validation: The February 31st Problem
Hi Railers, I''m wondering if anyone has found a nice solution to the problem of validating dates to prevent things like 29th February 2005, or 31st September and so on? I see it was discussed before... http://wrath.rubyonrails.org/pipermail/rails/2005-March/003804.html ...but with no particularly ideal solution... http://wrath.rubyonrails.org/pipermail/rails/2005-March/003815.html
2005 Aug 10
5
validates_format_of on an optional field using :if
Hi there, I''ve got the following in my model: validates_format_of :postcode, :with => /^([a-zA-Z]{1,2}[0-9]{1,2} [0-9]{1}[a-zA-Z]{2})$/, :message => "is not valid", :if => :postcode ... but it''s not working - it always insists on validation, even if postcode is empty. Basically, the postcode field is optional, but if it''s filled in, I want to
2006 Jan 18
4
Ruby "htmlentities" replacement: code review please!
Hi Railers, For some time now I''ve been looking for a decent Rails equivalent of PHP''s "htmlentities" command, because ERB''s html_escape (or more commonly called as just "h", eg. <%=h @somevariable %> ) just doesn''t go far enough for me. Back in PHP land, I actually had an extended version of the htmlentities command to deal with
2006 Feb 20
8
Downloading Files
I''m building a rails app that will create .xml documents for the users of a particular intranet. My question is two fold 1. The files are in /public/files/something.xml, etc... How can I create a link_to in rails to access these files? 2. How I can I force the file to be downloaded (bring up a save dialog) as opposed to displaying in the browser? Thanks for hte help. -- Posted
2005 Nov 04
0
ISO-3166 country_select
Hi Railers, I need country_select to give me ISO-3166 country codes (the two letter alphabetic "alpha2" ones). I''ve seen Multilingual Rails at: http://www.tuxsoft.se/sv/oss/rails/multilingual That has the function I need, but I really don''t need the rest of it, since this is literally the only function I need. I''m wondering whether: 1. To install the
2005 Mar 16
6
caches_page problem
I''m currently caches_page the show method in my Image controller. The show method looks at @params[''id''] to determine what output should be generated. The first time I access the method, say with http://localhost/public/image/show/1.jpg, the appropriate directories get created in /public (i.e. public/image/show/1.jpg). However, when I try to retrieve
2006 Jun 14
1
page caching with custom routes
hi , I''m having problems with expire_page with custom routes i''ll show some code blog_controller --------------- def clear_cache_rss_artikels expire_page url_for(:controller => "xml",:action => "rss_artikels") end this is called when a new article is posted or edited or destroyed xml_controller --------------- class XmlController <
2006 May 17
2
Caching doesn''t work at all...
Installed RoR under lighttpd and noticed that caching some actions didn''t accelerate page serving. The following little example of class TestscriptController < ApplicationController caches_page :index def index @string = Time.now.to_s end end and <html> <head> <title>Test</title> </head> <body> <p>Test</p> <p><%=
2007 Feb 11
2
rails cache problems
I''m having issues with page caching in Rails 1.1.6 where it''s not always putting a .html extension at the end of the cached files (so I end up with files like 122.21 instead of 122.21.html). Then the next time it is served up via the web server (mongrel or apache) Firefox treats it as a binary file. I can''t find a fix for this so I was hoping there would be a
2005 Jun 26
4
calling controller and caching from a sweeper class
[cross-posting to rails and typo lists] Hi, I''m tinkering with the code for typo, a rails-based blog engine. Typo has an XmlController with actions "rss" and "atom" which generate feed.xml files, and it uses a caches_page declaration to cache the files that get generated by those actions. It also has a Sweeper (Observer) class that expires those cached files when a