For the life of me, I can't figure out (or find the right text to search) how to create a link that looks like this:
<a href="/publisher" class="button first"><span>This text will be hidden</span></a>
There's a similar example in the link_to
API, but it doesn't quite get to what I need. I don't want my anchor tag to have any text (all text will reside in the nested span
) and I want to link to a route named publisher_root
.
I'm tired of banging my head on this, so any help would be much appreciated.
UPDATE: As mentioned in my comment below, HAML is also in play here. I eliminated it originally because it seemed like nothing more than an additional complexity. Since it appears to be at the crux of the issue, though, I've added the tag and here's my code:
#masthead.container
%h1
!= image_tag( 'home-masthead.png' )
%p
- link_to publisher_root, :class => 'button first' do
%span Link Text