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
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
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
3 matches
Mail list logo