Module: OtuPageLayoutsHelper

Defined in:
app/helpers/otu_page_layouts_helper.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) otu_page_layout_select_tag



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, options_from_collection_for_select(OtuPageLayout.all.where(project_id: $project_id), :id, :name), include_blank: true)
end

- (Object) otu_page_layout_tag(otu_page_layout)



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