How to do link_to with query parameter AND css class


I've been trying to get a number of variations of the following line of template code to work: <%= link_to 'Show contact details', :controller => 'people', :action => 'show', :class => 'actionLink', :id => person %>

I've tied putting curlies around the controller and action as well as the class, but I haven't got it to work. I've found some variations that will render the css class, but not the query parameter.

Thanks, Scott

Doh! Figured it out:

<%= link_to 'Show contact details', {:controller => 'people', :action => 'show', :id => person}, {:class => 'actionLink'} %>