title: How to change the selected text in a drop down list in rails application based on a variable?
body: <p>I have a select drop down box with a list of currencies.
  To make it easier for users, I want to change the default selected value in the drop down when the page loads based on the user country (will use <a href="https://rubygems.org/gems/geoip" rel="nofollow">geoip</a> gem for that)
  So I will be writing this ruby code:</p>
  
  <pre><code>$country = GeoIp.geolocation(request.remote_ip, :precision =&gt; :country)
  </code></pre>
  
  <p>How to change the selected value of the drop down list box based on the $country value?
  Should I do that with Javascript? or with rails forms helper?? And what is the code for it?</p>