From: Yu Co Date: 2006-10-05T21:02:59+09:00 Subject: Re: Multilanguage support in select box Pit Capitain wrote: > Yu Co schrieb: >> Then I want to import these declarations in my rhtml file >> >> "<%=select "customer", "salutation", [ _ 'Mr' , _ 'Ms' ] %>" >> Unfortunately I get a SyntaxError. If I change this line to >> "<%=select "customer", "salutation", [ _ 'Mr' ] %>" >> Then it works fine. > > You have to add parentheses to tell Ruby where the argument lists end: > > <%= select "customer", "salutation", [ _('Mr'), _('Ms') ] %> > > Regards, > Pit Sorry Pit, your suggestion was correct. I just have need to change to language setting in the browser, then it works fine. -- Posted via http://www.ruby-forum.com/.