On 10 Jan 2011, at 20:59, Marc wrote:

> On Jan 10, 7:45 pm, William Ross <w...@spanner.org> wrote:
>> Radius tags are implemented in the Page model, where you shouldn't have 
>> access to the request, but it also defines request and response accessors 
>> that are populated by the SiteController, so in a radius tag you can access 
>> the request directly. The solid way would be:
>>         referer = tag.globals.page.request.referer
>> but since we're rendering inside Page it's usually ok just to say:
>>         referer = request.referer
>> The biggest problem you'll find is that in order to display request-specific 
>> content you have to disable the page cache. If you just want to pick up 
>> googlers you might find it easier to do in javascript.
> I was planning on using it to jazz up the file not found response,
> i.e. differentiate internal link error from external reference miss. I
> get the impression that it already disables the page cache for its
> responses.

Yes, it does. There's already an <r:attempted_url /> tag too (in 
app/models/file_not_found_page.rb). It should be easy to add more.



Reply via email to