On 28 Apr 2009, at 20:52, Will Jessop wrote:
<%= link_to "Permalink", category_joke_path(@joke.category, @joke), :class => "comments" %>
I discovered today you can just do
<%= link_to "Permalink", [[email protected], @joke], :class => "comments" %>
and it'll call `category_joke_path` itself. I'm working on a rails 2.3 app, not sure when that behaviour was introduced.
C --- Caius Durling [email protected] +44 (0) 7960 268 100 http://caius.name/
PGP.sig
Description: This is a digitally signed message part
