If you need to add a css class to a link_to(), do this: <%= link_to ‘Admin Home’, { :controller => ‘home’, :action => ‘index’ }, :class => ‘selected’ %> not this: <%= link_to ‘Admin Home’, :controller => ‘home’, :action => ‘index’, :class => ‘selected’ %>
SITE MENU
-
Recent Posts
Links
Tags
Archives
- October 2012 (1)
- August 2012 (1)
- July 2012 (1)
- April 2012 (5)
- March 2012 (2)
- February 2012 (1)
- January 2012 (2)
- February 2011 (1)
- January 2009 (1)
- October 2008 (1)
- June 2008 (1)
- March 2007 (1)
- December 2006 (1)
- August 2006 (1)
- July 2006 (1)
- May 2006 (1)
- April 2006 (1)
- February 2006 (1)