base code for a rails app using datatables