app/helpers/otu_page_layouts_helper.rb
module OtuPageLayoutsHelper
def otu_page_layout_tag(otu_page_layout)
return nil if otu_page_layout.nil?
otu_page_layout.name
end
def otu_page_layout_select_tag
select_tag(:otu_page_layout_id, options_from_collection_for_select(OtuPageLayout.all.where(project_id: sessions_current_project_id), :id, :name), include_blank: true)
end
end