简体   繁体   中英

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM