Link to a page like this:
The following code is found:
$.getJSON("/newsfeeds/61?order=activity&type=discussion", function(response) {
$(".discussion-post-stream").replaceWith($(response.newsfeed_html));
$(".stream-posts").before($("<div class=\'newsfeed-sorting-panel generic-12\' data-id=\'61\'>\n<div class=\'newsfeed-type-menu generic-12\'>\n<ul class=\'newsfeed-sorting-buttons\'>\n<li>\n<span>\nShow\n<\/span>\n<\/li>\n<li>\n<select id=\"type\" name=\"type\"><option selected=\"selected\" value=\"discussion\">Show All (15)<\/option>\n<option value=\"discussion_answered\">Answered Questions (15)<\/option>\n<option value=\"discussion_unanswered\">Unanswered Questions (0)<\/option><\/select>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n"));
Newsfeed.prepare_for_newsfeed_sort($(".newsfeed-sorting-panel"));
});
Googlebot attempts to crawl the URL
/newsfeeds/61?order=activity&type=discussion
in search of interesting HTML. However, an error is reported by my app stating "ActionView::MissingTemplate: Missing template newsfeeds/show..."
- What prompts Googlebot to crawl this URL? Is it exploring all possibilities or is there something amiss in the code?
- How can this be effectively addressed in Rails? Disregarding all MissingTemplate errors could mask genuine issues later on. Any alternatives to consider instead of ignoring errors caused by bots?