Bug fix: will_paginate was generating links to
"/traits_and_yields_view?..." because using sub! on variable "table"
modified the value of params[:controller].