check if actionview is defined for rails