Add indicies to migration, change to belongs_to helper in migration, change layouts to be cannonical, and add id parameter in layout proc.