Fixes action_view issue where pages do not render due to NoMethodError