Module: BardStatic::LinkToHelper
- Defined in:
- app/helpers/bard_static/link_to_helper.rb
Defined Under Namespace
Classes: LinkTo, LinkToCurrent, LinkToNav
Instance Method Summary
collapse
Instance Method Details
#link_to(*args, &block) ⇒ Object
3
4
5
6
|
# File 'app/helpers/bard_static/link_to_helper.rb', line 3
def link_to(*args, &block)
args.unshift capture(&block) if block_given?
LinkTo.render(self, *args)
end
|
#link_to_current(*args, &block) ⇒ Object
8
9
10
11
12
13
|
# File 'app/helpers/bard_static/link_to_helper.rb', line 8
def link_to_current(*args, &block)
args.unshift capture(&block) if block_given?
LinkToCurrent.render(self, *args) do |link|
link.current_path = request.fullpath
end
end
|
#link_to_nav(*args, &block) ⇒ Object
15
16
17
18
19
20
|
# File 'app/helpers/bard_static/link_to_helper.rb', line 15
def link_to_nav(*args, &block)
args.unshift capture(&block) if block_given?
LinkToNav.render(self, *args) do |link|
link.current_path = request.fullpath
end
end
|