Better check for Rails app