I’m trying to override the list() function of the CRUD module for one of my models.
I found this on google groups which is essentially the issue i’m having.
Basically I want to filter the list based on certian categories, I tried this:
CONTROLLER
public static void list(string category){
List<Duty> object = Duty.getByCategory(category);
render(object);
}
MODEL
public static List<Duty> getByCategory(String category){
List<Duty> result = Duty.find("select distinct d from Duty d join " +
"d.category c where c.name = ? order by d.name", category).fetch();
return result;
}
I get the following error:

How do you overwrite the list action?
Any help will be much appreciated.
It seems that you are overriding the controller but not the template. The signature of the CRUD list method is this one, slightly different that yours:
You will notice that render() is passing many more parameters that you do, and probably they are not optional. Try to provide values for them.