Sha256: 7cb2a5c26b6f8252f82d654da2deb79679be9ffbef4ff04abfb8c4d10504af09
Contents?: true
Size: 523 Bytes
Versions: 7
Compression:
Stored size: 523 Bytes
Contents
module Navigator module ActionView def self.included base base.send :include, InstanceMethods end module InstanceMethods # Renders a navigation menu. # ==== Parameters # * +tag+ - Optional. The menu tag. Default: "ul" # * +attributes+ - Optional. The menu tag attributes. Default: {} # * +block+ - Optional. The code block. def render_navigation tag = "ul", attributes = {}, &block raw Menu.new(self, tag, attributes, &block).render end end end end
Version data entries
7 entries across 7 versions & 1 rubygems