Displaying 2 results from an estimated 2 matches for "check_quant".
2006 Jun 04
5
filter function with parameter
Hi!
I want to add a function with a static paramter ("2" in the example) to
a filter, but somehow Rails seems to be looking for another syntax.
before_filter :check_quantity(2), :only => [:show]
doesn''t work. What''s the right way to do this?
Thanks a lot!
--
Posted via http://www.ruby-forum.com/.
2006 Nov 04
0
filter function with parameter
hey,
i have found your post about filter function with parameters:
Hi!
I want to add a function with a static paramter ("2" in the example) to
a filter, but somehow Rails seems to be looking for another syntax.
before_filter :check_quantity(2), :only => [:show]
doesn''t work. What''s the right way to do this?
Thanks a lot!
---------------------------------
Can u help me with this??
i have this code in a module file. (module LoginSystem)
def module_backend_required(the_module = "test",the_action =...