Getting the ri18n to dynamically switch locales without rest


I have a situation where i got my app working with ri18n using these
want to find out how to get the app to switch languages dynamically,
For one language at a time it works perfectly without any errors or
This is particularly because i am new to ruby and rails.