Module: OtuPageLayoutsHelper
- Defined in:
- app/helpers/otu_page_layouts_helper.rb
Instance Method Summary collapse
Instance Method Details
#otu_page_layout_select_tag ⇒ Object
8 9 10 |
# File 'app/helpers/otu_page_layouts_helper.rb', line 8 def otu_page_layout_select_tag select_tag(:otu_page_layout_id, (OtuPageLayout.all.where(project_id: sessions_current_project_id), :id, :name), include_blank: true) end |
#otu_page_layout_tag(otu_page_layout) ⇒ Object
3 4 5 6 |
# File 'app/helpers/otu_page_layouts_helper.rb', line 3 def otu_page_layout_tag(otu_page_layout) return nil if otu_page_layout.nil? otu_page_layout.name end |