what’s the error?
it could be that Boards.find is including other associations so you might need to write something like
@running = Boards.find(:all, :conditions => “running = 1”, :order => "
boards.priority ASC, quantity DESC")
though looking at your pasted code, you have a single quote before the closing paren (which is missing on 2 of the lines) that was never opened…that could also be your issue.
ed