Css classes


#1

Can’t find any documentation about this so…
Is there a way to assign a class within a link_to method and if so how?

For example, I need the following to format link from <%= link_to “Pages”, :controller => ‘page’,
:action => “list” %>


#2

<%= link_to “Pages”, { :controller => ‘page’, :action => ‘list’ },
:class =>
‘someclass’ -%>


#3

I had tried that but without putting the controller and action in
brackets. That works great! Thanks!