Created
October 22, 2010 02:15
-
-
Save th1agoalmeida/639792 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class user | |
GENDERS = {'-'=>'0','user.gender.female'=>'1','user.gender.male'=>'2'} | |
<%= select("user", "gender", User::GENDERS) %> | |
<select id="user_gender" name="user[gender]"> | |
<option value="0" selected="selected">-</option> | |
<option value="1">user.gender.female</option> | |
<option value="2">user.gender.male</option> | |
</select> | |
is there a way I can translate this array of strings directly? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment