Module StaticMatic::Helpers::UrlHelper
In: lib/staticmatic/helpers/url_helper.rb

Methods

link   link_to   urlify  

Public Instance methods

Generate an HTML link

If only the title is passed, it will automatically create a link from this value:

link(‘Test’) -> <a href="test.html">Test</a>

link_to(title, href = "", options = {})

Alias for link

Generates a URL friendly string from the value passed:

"We love Haml" -> "we_love_haml" "Elf & Ham" -> "elf_and_ham" "Stephen‘s gem" -> "stephens_gem"

[Validate]