check for ActionView to detect rails

close #349