Depending on how widespread this requirement is through your application, I can think of a couple of ways to do it...
1. If it's just in a few places, then write a helper in application_helper.rb
def liams_link_to(text, path)
out = "<span class='liams_link'>"
out += link_to text, path
out += "</span>"
out
end
and call it like this: liams_link_to page.title, view_page_path(page.name)
2. alternatively if you're using this (almost) everywhere in your app, I would alias the ActionView link_to method with:
alias_method_chain :link_to, :span_tags
then write your own link_to like this
def link_to(text, path)
out = "<span class='liams_link'>"
out += link_to_without_span_tags text, path
out += "</span>"
out
end
calling it with just link_to. And if somewhere you need the standard link_to, it's just link_to_without_span_tags
hope this helps
Les