Method: FileShare::ApplicationHelper#link_wrapper
- Defined in:
- app/helpers/file_share/application_helper.rb
#link_wrapper(path, wrapper_options = {}, link_options = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/helpers/file_share/application_helper.rb', line 3 def link_wrapper(path, ={}, ={}) tag = .delete(:tag) || :p link_text = .delete(:link_text) || path unless .delete(:no_wrapper) return content_tag(tag, ) do link_to(link_text, path, ) end else return link_to(link_text, path, ) end end |