diff options
author | Jeff Dean <jeff@zilkey.com> | 2008-11-17 00:45:20 -0500 |
---|---|---|
committer | Jeff Dean <jeff@zilkey.com> | 2008-11-17 00:45:20 -0500 |
commit | 3fbd9acc5c6418cffe8b2676f9e9e69ee1a84847 (patch) | |
tree | d83b401f7699c1c5320d8b8a87fc37d4dc030e62 /railties/doc/guides/source/creating_plugins/routes.txt | |
parent | f22b686ebb8b8606e752188aa072b40700f01f54 (diff) | |
download | rails-3fbd9acc5c6418cffe8b2676f9e9e69ee1a84847.tar.gz rails-3fbd9acc5c6418cffe8b2676f9e9e69ee1a84847.tar.bz2 rails-3fbd9acc5c6418cffe8b2676f9e9e69ee1a84847.zip |
Plugin guide: Edits
Diffstat (limited to 'railties/doc/guides/source/creating_plugins/routes.txt')
-rw-r--r-- | railties/doc/guides/source/creating_plugins/routes.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/doc/guides/source/creating_plugins/routes.txt b/railties/doc/guides/source/creating_plugins/routes.txt index 249176729c..dc1bf09fd1 100644 --- a/railties/doc/guides/source/creating_plugins/routes.txt +++ b/railties/doc/guides/source/creating_plugins/routes.txt @@ -1,6 +1,8 @@ == Routes == -Testing routes in plugins can be complex, especially if the controllers are also in the plugin itself. Jamis Buck showed a great example of this in http://weblog.jamisbuck.org/2006/10/26/monkey-patching-rails-extending-routes-2. +In a standard 'routes.rb' file you use routes like 'map.connect' or 'map.resources'. You can add your own custom routes from a plugin. This section will describe how to add a custom method called that can be called with 'map.yaffles'. + +Testing routes from plugins is slightly different from testing routes in a standard rails app. To begin, add a test like this: *vendor/plugins/yaffle/test/routing_test.rb* |