diff options
author | schneems <richard.schneeman@gmail.com> | 2012-05-22 18:23:17 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2012-05-24 12:50:16 -0500 |
commit | cb44e0fed97d7cef024e9dd9cc113a75cc7d6f20 (patch) | |
tree | 3a20c81963bcdacb9490b1b40584ce903a3fd674 /railties/lib/rails/templates/layouts | |
parent | abccf82c8b1010736c72058948d42acb7127f82a (diff) | |
download | rails-cb44e0fed97d7cef024e9dd9cc113a75cc7d6f20.tar.gz rails-cb44e0fed97d7cef024e9dd9cc113a75cc7d6f20.tar.bz2 rails-cb44e0fed97d7cef024e9dd9cc113a75cc7d6f20.zip |
/rails/info/routes path shows routing information
Will show similar contents to the output of `$ rake routes` in the browser in development. This speeds the time required to generate routes, since the application is already initialized.
Diffstat (limited to 'railties/lib/rails/templates/layouts')
-rw-r--r-- | railties/lib/rails/templates/layouts/application.html.erb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/railties/lib/rails/templates/layouts/application.html.erb b/railties/lib/rails/templates/layouts/application.html.erb new file mode 100644 index 0000000000..53276d3e7c --- /dev/null +++ b/railties/lib/rails/templates/layouts/application.html.erb @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8" /> + <title>Routes</title> + <style> + body { background-color: #fff; color: #333; } + + body, p, ol, ul, td { + font-family: helvetica, verdana, arial, sans-serif; + font-size: 13px; + line-height: 18px; + } + + pre { + background-color: #eee; + padding: 10px; + font-size: 11px; + white-space: pre-wrap; + } + + a { color: #000; } + a:visited { color: #666; } + a:hover { color: #fff; background-color:#000; } + </style> +</head> +<body> +<h2>Your App: <%= link_to 'properties', '/rails/info/properties' %> | <%= link_to 'routes', '/rails/info/routes' %></h2> +<%= yield %> + +</body> +</html> |