Forum: Ruby on Rails rails url to object reference

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cb33b32bd5d675db7be148542976e510?d=identicon&s=25 Sam Joseph (Guest)
on 2006-04-04 05:35
(Received via mailing list)
Hi all

Is there a quick utility to go from a url to an object reference, e.g.
http://rails/users/show/1 --> @user, but not through a browser ...?

I don't want to access the object to look at it - I want the url string
itself to be interpreted - like for a wiki name in a wiki page

What would be best would be a function like:

return_object_ref(urlstring)

where urlstring = 'http://rails/users/show/4' or whatever.

Anyone know if such a thing exists?

Many thanks in advance

CHEERS> SAM
This topic is locked and can not be replied to.