I'm trying to do something very basic but am getting tripped up.
I am creating anchor tags using link_to, but I want these tags to be wrapped in li tags. I followed the steps on a previous post Rails 3: Link_to list item? but this wraps my LIs in As. I've tried this.
<%= link_to "<li>Site Specific Articles</li>".html_safe, site_specific_articles_path if can? :edit, SiteSpecificArticle %>
but it produces
<a href="/site_specific_articles"><li>Site Specific Articles</li></a>
when I want
<li><a href="/site_specific_articles">Site Specific Articles</a></li>
Any ideas are more than welcome on this.
Thank You.