[Rails] Will_Paginate, with muliple same type collection

2008-12-10 Thread Mark Ma
Hi guys: i have a question about Will_paginate . i have mutilple same type collections. for example . items_1 = Post.find(:all , :conditions ={...}) # different condtions to get the items_1 items_2 = Post.find(:all, :conditions ={...}) # diffenrt conditions to get the item_2 items = items_1

[Rails] Filter inheritance

2008-10-06 Thread Mark Ma
can anyone tell me how before filter can call the private method audit which from the parent class ? because the bank controller has a private method called audit, this one should not be inheritance by VaultController, so how the before_filter use the private method audit ? if the child class