Module MenuHelper
In: app/helpers/menu_helper.rb

Methods

Public Instance methods

メニューにともなう機能へのリンクを返す。

[Source]

    # File app/helpers/menu_helper.rb, line 3
 3:   def link_menu_to(menu, options={})
 4:     unless menu.motion
 5:       return h(_(menu.name))
 6:     end
 7:     html_options = {
 8:       :class => "link_m reloadable_link",
 9:     }
10:     if menu.with_ajax?
11:       html_options[:onclick] = "return onMenu(#{menu.id})"
12:     end
13:     html_options.update(options)
14:     return link_to(h(s_(menu.name)), menu.url_options, html_options)
15:   end

[Validate]