In a Rails log file, what does "Processing by ProductsController#index as */*" mean? -


In my Rail Log file, I have a lot of

  "g 63.148.78.244 Friday 24 September 19:03:39 +0000 2010 Product Controller # Index Processing as HTML  

I understand that it means that the rail service is serving an HTML page, though its Meaning?

  for start 63.148.78.244 "/" ​​Friday 24 September 18:05:51 +0000 2010 Product processed by the controller # complete as * index in * / * 0ms >  < P> Why  * / * ? 

This HTTP_ACCEPT header sent by the browser The general scenario is that the browser sends out a list of all the mime types that can process and the server returns results in one of them - usually HTML.

But in some cases it This is not the case, for example if you use wget without any other parameters.

Try

  wget h Ttp: // yourserver  

and you will see in your log file * / * which means that "browser" will send back whatever you accept (it is quite clear that wget Can accept anything because it is archiving it in the file).


Comments