start architecture menu

This commit is contained in:
Torsten Ruger
2018-04-11 10:45:50 +03:00
parent 599583c8f4
commit b1614dc353
7 changed files with 66 additions and 101 deletions

View File

@ -6,4 +6,17 @@ module ApplicationHelper
link += link_to( post.title , blog_post_url(post.slug))
link.html_safe
end
def ext_link(name = nil, options = nil, html_options = nil, &block)
target_blank = {target: "_blank"}
if block_given?
options ||= {}
options = options.merge(target_blank)
else
html_options ||= {}
html_options = html_options.merge(target_blank)
end
link_to(name, options, html_options, &block)
end
end