Created
June 4, 2009 16:56
-
-
Save jacqui/123704 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActionView::TemplateError (getaddrinfo: Temporary failure in name resolution) on line #122 of app/views/layouts/portal.rhtml: | |
119: | |
120: | |
121: <div id="footer"> | |
122: <%= language_switcher %> | |
123: | |
124: <% if RAILS_ENV == 'development' -%> | |
125: <hr /> | |
# language_switcher looks like this: | |
# app/helpers/portal_helper:25 in portal | |
def language_switcher | |
@language_switcher ||= Locale.list.map { |l| link_to_unless(@current_locale == l, l.name, :lang => l.code) }.join(' | ') | |
end | |
# I went into script/console staging on staging server and was able to do: | |
>> Locale.list | |
=> [#<Locale id: 4, name: "Deutsch", code: "de_DE", comments: nil, created_at: "2007-12-12 11:44:04", updated_at: "2007-12-12 11:44:04", deleted_at: nil>, #<Locale id: 1, name: "English", code: "en_US", comments: nil, created_at: "2007-10-02 12:08:18", updated_at: "2007-10-02 12:08:18", deleted_at: nil>, #<Locale id: 2, name: "Français", code: "fr_BE", comments: nil, created_at: "2007-10-02 12:08:18", updated_at: "2007-10-02 12:08:18", deleted_at: nil>, #<Locale id: 3, name: "Nederlands", code: "nl_BE", comments: nil, created_at: "2007-10-02 12:08:18", updated_at: "2007-10-02 12:08:18", deleted_at: nil>] | |
# so... not sure what the error is about :( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment