Forum: Ruby on Rails regarding localization

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
napster (Guest)
on 2008-11-28 16:15
(Received via mailing list)
Im trying to implement localization language options with drop-
down menu button...

here my html code.....

<form action=" " >
       <select id="category"  style="width:226px"
                        <option value="0">Select a language</option>
         <%@lang_view.each do|key,value|%>
                 <option value=<%=value%>><%=key%></option>
                 <!--<option value='ar'>arabic</option>
          <option value='hi'>hindi</option>-->

when an event fires it call the  "startRequest()" method which is
defined in script tags.

<script type="text/javascript">
function startRequest(){
        var xhr;
        var lan_Id = document.getElementById("category").value;
        var uri_orig = window.location.href;
        new Ajax.Updater('update','get_lang', {
                onComplete: function(request){
                parameters: 'lan_Id=' + encodeURIComponent(lan_Id)


actually 'get_lang' method is in application controller.

Instead of going to application controller..... it is checking this
"get_lang" method in current controller.("i.e url").

please any one help me regrding this...............
This topic is locked and can not be replied to.