On Jul 7, 1:32 am, Rails List <[email protected]>
wrote:
> BenWilsonwrote:
> > Okay, so I'm trying to have a URL like the following (which uses a key
> > generated at random):
>
> > societies/6b241c631c6beaa89c889b9fb388caef9f617900ca1eff
> > societies/6b241c631c6beaa89c889b9fb388caef9f617900ca1eff/edit
>
> > Where do I change the default behavior from using the ID, to another
> > value of that object?
>
> Did you try this in routes -
>
> map.connect 'societies/:something/edit', :action=>'aaa',
> :controller=>'ccc'
>
>  - example. societies/:rkey/edit

I'd like to avoid rewriting routes (I mean, I can do
map.resources :societies)

I'll try the to_params, that one slipped my mind.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to