How can I pass subscription.title
to my controller method watchsub
? How do you then access the variable in watchsub
?
In my view I have
<% @subscriptions.each do |subscription| %>
<tr>
<td> <%= link_to subscription.title, watchsub_stream_path(subscription.title), :method => :get %> </td>
</tr>
<% end %>