Storing Rails 3 Routes in Database
By question is actually pretty simple. I'd just like to know if anybody was able to load their Rails 3 routes into a database so that they could be manipulated without server access from an admin panel like Typus. If anyone has pulled this off or knows of an effective way to do it, please let me know as I开发者_如何学编程 am really curious to pull this off on Rails 3.
You may have to handle your own dispatching with a route like "*path"
. Then /foo/bar/123
would route to a controller of your choice where params[:path]
is an array ['foo', 'bar', '123']
. Then you could do whatever from there.
精彩评论