Hi there,

I want to create a link with a 'span' inside such as


<a href="home.html"><span>Home</span></a>

I'm trying to do it so that it highlights the current navigation, using
something I found online I have this.

def section_link(name,options)
    if options[:action] == @current_action and options[:controller] ==
@current_controller
       link_to(name, options, :class => 'on')
    else
      link_to(name,options)
    end
end

So I effectively want the link_to to be able to contain the span, any
ideas?

Much appreciated!


Pete
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to