Forum: Ruby on Rails Route alias

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.
Helmut J. (Guest)
on 2008-12-04 17:56
(Received via mailing list)

the Rails app I am currently working on will have a public API (REST)
so other can communicate with it. I am thinking right now which URLs
to use. I saw some apps which use a prefix for their API, e.g.


I am not quite sure if this is really necessary, I mean if the app is
quite RESTful, there shouldn't be much changes to the interface?

If I use the abovementioned approach, I still don't want to show these
ugly URLs to my users. So I need to have some kind of URL aliasing so
that actually

/projects points to /api/current_version/projects

How can I do that in a relative easy, dry, and clear way.

Comments, tips are appreciated. Thank you
This topic is locked and can not be replied to.