title: set locale automatically in ruby on rails
body: <p>how to set locale automatically on ruby on rails? For instance, if the web pages is opened up in Spain then the locale=es, similarly if it is in united kingdom then the locale=en and alike?</p>
  
  <p>Please help me out.</p>