trashed: "f" ???  This should be a boolean value and not a string.  You want to be able to do things like docket.trashed? to check if trashed or not rather than if docket.trashed = "f"