Question: I want to make an android application to get weather forecast using openweathermap I from the website, I see that the URL is written like this :

[api.openweathermap.org/data/2.5/forecast/daily?lat=35&lon=139&cnt=10&mode=json]

I want to add my current location as longitude and latitude instead of constant values; I got the longitude and latitude of my current location; but I don't know how to add them into the URL.

can I use val[longitude]+val[latitude]??

Answer: 
Something like this would work:

```
<%= reseller.approved ? "Yes" : "No" %>

```
What I like to do is extend the boolean classes with a to\_yesno helper. 

```
config/initializers/ruby_extensions.rb:

class TrueClass
  def to_yesno
    'yes'
  end
end

class FalseClass
  def to_yesno
    'no'
  end
end

```

Then in my views, for any boolean value I can just do:

```
<%= reseller.approved.to_yesno %>

```