Method: FormTranslation::LanguagesFormBuilder#render
- Defined in:
- lib/form_translation/languages_form_builder.rb
#render(&block) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/form_translation/languages_form_builder.rb', line 11 def render(&block) rnd = SecureRandom.hex(8) template.content_tag(:div, '') do divs = '' divs += template.content_tag(:ul, class: 'nav nav-tabs') do li_content rnd end divs += template.content_tag(:div, class: 'tab-content') do language_tabs rnd, &block end divs.html_safe end end |