Skip to content

Instantly share code, notes, and snippets.

Avatar

Ricardo Amores Hernández rickyah

View GitHub Profile
@rickyah
rickyah / :rails :erb RefineryCms locale navigation
Created Aug 30, 2012 — forked from errorstudio/_locale_nav.html.erb
Refinery CMS: a list of all frontend locales with links
View :rails :erb RefineryCms locale navigation
<ul>
<% Refinery::I18n.config.frontend_locales.each do |locale| %>
<li>
<%= link_to "/#{locale.to_s + request.path}", {:title => Refinery::I18n.locales[locale]} do%>
<span><%= Refinery::I18n.locales[locale] %></span>
<% end -%>
</li>
<% end %>
</ul>