Hello,
I was wondering if anybody can show me how to pass parameters to a
Private method with before_filter.
I’ve tried doing the proc blocked way with
before_filter {|c| c.private_method(params)} …but this throws an
exception when the method is private.
The rails api says that using the standard symbol reference
( before_filter :private_method) is for private and protected methods
which leads me to assume that using the block method only works for
public methods. Does anybody know how I might pass parameters to a
private method with before_filter?
Thanks
Greg T.