Pre-processing for every page

Greg Willits
Sat, 13 Oct 2007 04:41:52 -0000

In my own app framework I''ve used for some time now, I am accustomed
to having code which is processed for every page request prior to the
page/request-specific code.

In Rails, I''m still fguring out the flow of execution, and I
can''t
see where that code would go. The controller before_filter is nifty,
but what I am talking about would require redundant before_filters
for virtually every controller.

This code needs to run with the ability to dissect the request URL to
perform ops conditional to the URL content, then proceed with the
standard Rails controller/action hierarchy.

Where in Rails is there a point that I can tap into for this type of
thing?

TIA.

-- gw