Hi Richard, On Feb 1, 3:44 am, Richard Schneeman <rails-mailing-l...@andreas- s.net> wrote: > > <%= f.radio_button("part_of_speech", ["#{t 'noun'}", > "Noun"]) %> > > Produces part_of_speech" "NounNoun", If the user is using french it > shows up as "NomNoun". I Want the #{t 'noun'} to show to the user, but > only the 'Noun' to be sent to my controller, how can I do this? I would > post into the I18n section, but its much less read, and this is less an > issue with i18n, and more with how to make this work as expected: > > f.radio_button("foo", ["show me","send me"]
So you want the translated string as a label? The radio button is only a button, nothing else. What you need is a label right next to the button: f.radio_button("part_of_speech", :noun f.label("part_of_speech", t('noun')) ciao, tom -- Thomas R. "TomK32" Koll <> http://ananasblau.com just a geek trying to change the world http://github.com/TomK32 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---