Need a unique gift idea?
A Pastebin account makes a great Christmas gift


a guest Jul 11th, 2018 56 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. module ApplicationHelper
  2.   def render_site_menu(menu= :site_menu, project=nil)
  3.     links = []
  4.     menu_items_for(menu, project) do |item, caption, url, selected|
  5.       links << content_tag('li',
  6.         link_to(h(caption), url), item.html_options(:selected => selected))
  7.     end
  8.     links.empty? ? nil : content_tag('ul', links.join("\n"))
  9.   end
  10. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand