Displaying 2 results from an estimated 2 matches for "lang_switch".
Did you mean:
can_switch
I found a way to dynamically switch languages in your rails app -- look at it and give your opinions
2006 Jan 05
0
I found a way to dynamically switch languages in your rails app -- look at it and give your opinions
...populate your table with language names, namely hindi, japanes etc.
step 4) create a scffold for with aLang controller, just so that life is
easy.
step 5)now in your layout directory edit the <appname>.rhtml , place a code
to select the language
<%= start_form_tag :action => ''lang_switch'' %>
<%= select ("post","lang_id",Lang.find_all.collect{|p| [p.language]})%>
<%= submit_tag "Go" %>
<%= end_form_tag %>
step 6)now in your application.rb file create a method like this
def lang_switch
if @params["post"]["...
2006 Jan 05
0
I found a way to dynamically switch languages in your railsapp -- look at it and give your opinions
...opulate your table with language names, namely hindi, japanes
etc.
step 4) create a scffold for with aLang controller, just so that life is
easy.
step 5)now in your layout directory edit the <appname>.rhtml , place a
code to select the language
<%= start_form_tag :action => ''lang_switch'' %>
<%= select ("post","lang_id",Lang.find_all.collect{|p| [p.language]})%>
<%= submit_tag "Go" %>
<%= end_form_tag %>
step 6)now in your application.rb file create a method like this
def lang_switch
if @params["post"][&qu...