Re: http_referrer

2012-04-07 Thread Nokan Emiro
Why does it work without the @ for me? On Fri, Apr 6, 2012 at 4:26 PM, Magnus Holm judo...@gmail.com wrote: It should be in @env: @env['HTTP_REFERER'] (Note that it's misspelled in the spec) ___ Camping-list mailing list

~ AppController

2012-04-07 Thread Nokan Emiro
Hi, What's the nice and preferred way to run a snippet of controller code before all other normal controllers can do something? ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: ~ AppController

2012-04-07 Thread Magnus Holm
You can override #service: module App def service(*args) p({:controller = self.class, :method = @method, :args = args}) p :before super ensure p :after end end // Magnus Holm On Sat, Apr 7, 2012 at 18:11, Nokan Emiro uzleep...@gmail.com wrote: Hi, What's the nice and