In my coffee script file, I have this:
$('#map_of_users').html("<iframe src='/map/" + $(this).data('user_id') + "></iframe>"
Bots are crawling that file and thinking there's a URL to check out, so I in my log I get a routing error that looks like this
No route matches [GET] "/map/%22+$(this).data(%22user_id%22)"
I do want to track routing errors, so I can't ignore all of them, but having a large volume of these frivolous routing errors takes lots of unnecessary time.
Maybe one quick solution is to add all coffeescript files to the robots.txt file or everything in the app/assets/javascripts file. What is recommended?
Note: I also posted an incorrect solution which attempts to fix this in the routes.rb file, and I'm wondering why it doesn't work.