aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/railtie.rb
diff options
context:
space:
mode:
authorschneems <richard.schneeman@gmail.com>2012-12-11 15:41:49 -0800
committerschneems <richard.schneeman@gmail.com>2012-12-12 14:21:02 -0600
commit08d7b186fde6ec1e7779349a6ff00e34b30f294d (patch)
tree5427447e883b5ac31ed54a6d41abebb5c735ec38 /railties/lib/rails/railtie.rb
parentd4333eded218346eb8b8313f7c69851782f594ef (diff)
downloadrails-08d7b186fde6ec1e7779349a6ff00e34b30f294d.tar.gz
rails-08d7b186fde6ec1e7779349a6ff00e34b30f294d.tar.bz2
rails-08d7b186fde6ec1e7779349a6ff00e34b30f294d.zip
Output routes in :html format
By formatting routes for different media (txt/html) we can apply optimizations based on the format. We can include meta-data in the HTML to allow a rich experience while rendering and viewing the routes. This PR shows route helpers as they are used with the `_path` extension, it also has a javascript toggle on the top to switch to `_url`. This way the developer can see the exact named route helper they can use instead of having to modify a base. This is one example of an optimization that could be applied. Eventually we can link out to guides for the different columns to better explain what helper, HTTP Verb, Path, and Controller#action indicate. We could even add a route search box that could allow developers to input a given route and see all of the routes that match it. These are stand alone features and should be delivered separately.
Diffstat (limited to 'railties/lib/rails/railtie.rb')
0 files changed, 0 insertions, 0 deletions