Update gitignore, fix small method in trail.rb