Ruby on Rails and strange HTTP_ACCEPT header from PSP -


i have ruby on rails app (3.1rc4) , getting couple of exceptions each day same user agent (mozilla/4.0 (psp (playstation portable); 2.00)). exception:

a actionview::missingtemplate occurred in home#index: missing template home/index, application/index {:formats=>["*/*;q=0.01"], :locale=>[:en, :en], :handlers=>[:erb, :builder, :arb]}. searched in: "/var/www/releases/20110721144523/app/views" 

i have app/views/home/index.html.erb, looks tries find file strange request format "/;q=0.01".

http header:

 * http_accept                               : */*;q=0.01 

anyone can me problem?

this common problem, see ticket on github.

you can choose render html explicitly; write render "index.html" instead of render. return html instead of 406 though. hope there better solutions.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -