1
2
3
4
SUPPORTED_LANGUAGES = [["English", "en"], ["German", "de"]]
# request.env["HTTP_ACCEPT_LANGUAGE"] = "en-us,us;q=0.5"
@languages = request.env["HTTP_ACCEPT_LANGUAGE"].split(';')[0].split(',')
...

Ruby Accept Language Array

by anshkakashi, October 02, 2007 12:47, 3 refactorings

This is some rails code whe...

B87cf29c05d9ce7a26588d6c48e5d988 Talk
1
2
3
4
cap_growth = 5

v = @property.current_value
...

Ruby On compound interest

by anshkakashi, September 30, 2007 15:14 Star_fullStar_fullStar_full

Here is the same thing, a b...

B87cf29c05d9ce7a26588d6c48e5d988 Talk