Rails params for email thread...struggling
===

I'm trying to build an internal app. I have a model with emails. Each email has an id. However, I have a view that displays the distinct email threads with this query:

    @subjects = Email.all(:group => "title")
    
I am displaying results with the following code. 

    <% @subjects.each do |subject| %>
      <tr>
        <td><%= subject.title %></td>
      </tr>
    <% end %>

I want the user to be able to click on one of those distinct titles and go to a page that displays all the emails that match that title. 

I've researched passing parameters and I'm just not quite sure what to do. As it stands, I was trying something like this: 

    <%= link_to 'Show thread', :action => :thread, :title => subject.title %>

Which generates a nice, handy URL. But this doesn't seem to work: 

    @emails = Email.find(params[:title])

Helps, hints or suggestions would be much appreciated. 
