As Caius mentioned, it's to_param not to_params.

On Tue, Apr 28, 2009 at 4:23 PM, Caius Durling <[email protected]> wrote:

> On 28 Apr 2009, at 16:10, Asa Calow wrote:
>
> That might be a typo - it's to_params rather than to_param.
>
>
> really?
>
>   def to_param
>
>     name
>
>   end
>
>
> >> app.account_url(acc)
>
> => "http://www.example.com/accounts/caius";
>
>
>
> C
> ---
> Caius Durling
> [email protected]
> +44 (0) 7960 268 100
> http://caius.name/
>
>


-- 
Jim Neath - Manchester based Ruby on Rails Developer
http://jimneath.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"NWRUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nwrug-members?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to