Hi,
Here are some some commits with example code for what you are after written
by my coworker Kieran for the open source Kete app:


http://github.com/kete/kete/commit/f3a5f91a30acb5335e2084a5f761855261935870
http://github.com/kete/kete/commit/0fe07a875eb14a79d566e41d790b7a4342528eb6
http://github.com/kete/kete/commit/de005f8f5e42b7d32c71371fb5155cc4939986a4

If Javascript is enabled, changing the drop down value will result in a
redirect to the page with chosen locale set.  If javascript is disabled, a
button is added so that the form can be submitted.

Note that available locales are pulled from a config/locales.yml file.

Hope this helps,
Walter

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to