I am working on Localization concept in Rails and need to get some of the localization values in HTML pages. So i generated array in controller like below format.,
#array use to store all localization values @alertMessages = [] #array values... {:index=>"wakeUp", :value=>"Wake Up"} {:index=>"tokenExpired", :value=>"Token Expired"} {:index=>"timeZone", :value=>"Time Zone"} {:index=>"updating", :value=>"Updating"} {:index=>"loadMore", :value=>"Load More"} #....more In HTML pages i want to get localization values like below or some other type,
<%= @alertMessages['wakeUp'] %> so, it will display value is 'Wake Up',
But its not working.. Can any one please...