Indeed! Cheers.
But I think this could be an RSpec issue, as it is mocked models that I am
having this issue with.

2009/4/28 Asa Calow <[email protected]>

>
> That might be a typo - it's to_params rather than to_param.
>
> Asa
>
> On 28 Apr 2009, at 16:01, doug livesey wrote:
>
> > Hi -- I've overwritten to_param on a couple of my models to have
> > them use something more friendly to the eye in the browser address
> > bar.
> > I thought this would then appear in any routes I generated from
> > *_path, but apparently not, as I have one route that I generate with
> > this method call:
> >   job_process_step_path( @job, @process_step )
> >
> > ... that returns a url like this:
> >   /jobs/1/process_steps/2
> >
> > This is obviously using the ids of the models, and not my custom
> > to_param method.
> > Can anyone advise on how I can get this to behave as I want it to?
> > Cheers,
> >    Doug.
> >
> > >
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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