public
Description: resources_controller rails plugin: rc makes RESTful controllers fun
Homepage: http://plugins.ardes.com/doc/resources_controller
Clone URL: git://github.com/ianwhite/resources_controller.git
Click here to lend your support to: resources_controller and make a donation at www.pledgie.com !
Documentation update replacing :erp with :resource_path
ReinH (author)
Mon Sep 08 14:16:17 -0700 2008
commit  b91c26f0d45781e2462bcdf3b04a2c4161e0ee73
tree    b8695a10c60e845d78c932e735782825b397d0da
parent  f2492ec4b12b61f0fac67a5ab4a64219de18d18b
...
110
111
112
113
 
114
115
 
116
117
 
118
119
120
...
138
139
140
141
 
142
143
144
...
110
111
112
 
113
114
 
115
116
 
117
118
119
120
...
138
139
140
 
141
142
143
144
0
@@ -110,11 +110,11 @@ module Ardes#:nodoc:
0
   #
0
   # You may have a named route that maps a url to a particular controller and action,
0
   # this causes resources_controller problems as it relies on the route to load the
0
-  # resources.  You can get around this by specifying :erp as a param in routes.rb
0
+  # resources.  You can get around this by specifying :resource_path as a param in routes.rb
0
   #
0
-  #   map.home '', :controller => :forums, :action => :index, :resource_route => '/forums'
0
+  #   map.root :controller => :forums, :action => :index, :resource_path => '/forums'
0
   #
0
-  # When the controller is invoked via the '' url, rc will use :erp to recognize the
0
+  # When the controller is invoked via the '' url, rc will use :resource_path to recognize the
0
   # route.
0
   #
0
   # ==== Putting it all together
0
@@ -138,7 +138,7 @@ module Ardes#:nodoc:
0
   #    forum.resource :image
0
   #  end
0
   #
0
-  #  map.home '', :controller => :forums, :action => :index, :erp => '/forums'
0
+  #  map.home '', :controller => :forums, :action => :index, :resource_path => '/forums'
0
   #
0
   # app/controllers:
0
   #

Comments