Added option :ajax for remote page links #133

Closed
wants to merge 1 commit into
from
@@ -92,6 +92,9 @@ def link(text, target, attributes = {})
target = url(target)
end
attributes[:href] = target
+ if @options[:ajax]
+ attributes["data-remote"] = true
+ end
tag(:a, text, attributes)
end