I get this error message when the bot bot tries to visit one of my controllers.
ActionView::MissingTemplate: Missing template channels/show, application/show with {:locale=>[:"sv-SE", :en], :formats=>["*/*;q=0.9"], :handlers=>[:erb, :builder, :haml]}. Searched in: * "/opt/www/app/releases/20120228181534/app/views" * "/opt/www/app/shared/bundle/ruby/1.9.1/gems/kaminari-0.13.0/app/views"
The problem is that I cannot reproduce it. The error has occurred 121 times in the last week (according to airbrake ).
Here is the backtrace.
Line 18, which is the only mentioned line that exists in my application, is part of superthis code
def render(options = {}, extra_options = {}, &block)
if request.headers['X-PJAX'] or params[:no_layout] == "true" or params[:_pjax]
options[:layout] = false
end
super(options, extra_options, &block)
end
The controller method is channels#showas follows:
def show
@channel =
@today =
@yesterday =
@tomorrow =
end
Visiting the URL that caused the error for the Google bot does not cause an error for me.
The only skipped URLs are those that contain special char like {"action"=>"show", "id"=>"25-jönköping", "controller"=>"channels"}. The value is ORIGINAL_FULLPATHset to /channels/25-j%c3%b6nk%c3%b6ping.
3.2.1.