From: Seebs Date: 2010-01-16T02:30:09+09:00 Subject: Re: Binding scope On 2010-01-15, Dave Birch wrote: > To give you a bit of background to this - I've got a "macro" that is > generating a bunch of reports. The reports contain lines like "the > number of people in this group are X and they have spent a total of Y on > your product this year". The problem is, I can't substitute X and Y for > their real values at the time the macro runs, because I don't know what > filters the user will apply when viewing the reports. So I need a way > to do the calculations and substitute in the values when the user views > the report, and to recalculate these each time the user changes the > filter (e.g. show me only people older than 30). Check with a rails group, but I'm pretty sure you'll find that you can, in fact, do this natively in rails without the security hole. -s -- Copyright 2010, all wrongs reversed. Peter Seebach / usenet-nospam@seebs.net http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!