Pit Capitain
10/5/2006 7:23:00 AM
Yu Co schrieb:
> Then I want to import these declarations in my rhtml file
>
> "<td><%=select "customer", "salutation", [ _ 'Mr' , _ 'Ms' ] %></td>"
> Unfortunately I get a SyntaxError. If I change this line to
> "<td><%=select "customer", "salutation", [ _ 'Mr' ] %></td>"
> Then it works fine.
You have to add parentheses to tell Ruby where the argument lists end:
<td><%= select "customer", "salutation", [ _('Mr'), _('Ms') ] %></td>
Regards,
Pit