My favorites | Sign in
Project Logo
                
Search
for
Updated Sep 02, 2007 by mattAimonetti
Labels: Featured
createAlanguageChooserForm  

Create a simple language chooser form:

Introduction

Code used in the demo app to let the user change the UI language

Details

<div id='language_chooser'>
<% form_tag @current_path, :method => @request_method do -%>
  <span><%= :change_language.l %>:  
  <%= select('user_locale', "code",  Globalite.ui_locales, { :include_blank => true }) %>  
  <%= submit_tag :change.l %></span>
<% end -%>
</div>

Sign in to add a comment
Hosted by Google Code