Sha256: a9966b15ebfa5998726a055ae31c2200e9f0d86894cb18eaac55b98dbdfe5761
Contents?: true
Size: 691 Bytes
Versions: 11
Compression:
Stored size: 691 Bytes
Contents
module BrickLayer::LayoutHelper def standalone_navigation html = '' BrickLayer.data_sets_standalones.each do |klass_in_symbol_form| klass_to_model_param = klass_in_symbol_form.to_s.underscore.pluralize html += content_tag :li do content_tag(:a, klass_in_symbol_form.to_s.underscore.titlecase, :href => data_sets_path(:model => klass_to_model_param)) end end content_tag( :ul, content_tag(:li, "Standalone Content") + html.html_safe ) end def nested_routes(routes) routes.map do |route, sub_routes| render(route) + content_tag(:ul, nested_routes(sub_routes), :class => "sub_routes") end.join.html_safe end end
Version data entries
11 entries across 11 versions & 1 rubygems