Module: LanguagesHelper

Defined in:
app/helpers/languages_helper.rb

Instance Method Summary collapse

Instance Method Details

#label_for_language(language) ⇒ Object



8
9
10
11
# File 'app/helpers/languages_helper.rb', line 8

def label_for_language(language)
  return nil if language.nil?
  language.english_name
end

There is no path, we fake it.



14
15
16
# File 'app/helpers/languages_helper.rb', line 14

def language_link(language)
  language.english_name
end

#language_tag(language) ⇒ Object



3
4
5
6
# File 'app/helpers/languages_helper.rb', line 3

def language_tag(language)
  return nil if language.nil?
  language.english_name
end