Forum: Ruby on Rails rails url to object reference

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Sam J. (Guest)
on 2006-04-04 07: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:


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

Anyone know if such a thing exists?

Many thanks in advance

This topic is locked and can not be replied to.