开发者

Storing Rails 3 Routes in Database

开发者 https://www.devze.com 2023-02-12 13:58 出处:网络
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 pan

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号