search for: find_allowed

Displaying 1 result from an estimated 1 matches for "find_allowed".

2006 Feb 15
3
accepting and passing args to find
I have a method that I want to accept args like the "find" method does and I need to pass those args along to a find call. # in controller action: @projects = Project.find_allowed(session[:user], :order => "name") # start of the model method: def self.find_allowed(owner, *args) projects = self.find_all(args) ... No matter how I try to pass those args along I get something like the following error: ActiveRecord::StatementInvalid: Mysql::Error: #42S22Unkn...