I changed the ia_leaf model to set the table (since that was dying) and changed paginate in display controller