Skip to content
This repository
Browse code

Remove old sections on pagination and components from Action Pack's R…

…EADME
  • Loading branch information...
commit 7b52deca327616980c97454f8ef57c9da8985848 1 parent 4d177a5
Chris Kampmeier authored December 02, 2008

Showing 1 changed file with 0 additions and 39 deletions. Show diff stats Hide diff stats

  1. 39  actionpack/README
39  actionpack/README
@@ -177,21 +177,6 @@ A short rundown of the major features:
177 177
   {Learn more}[link:classes/ActionView/Helpers/JavaScriptHelper.html]
178 178
 
179 179
 
180  
-* Pagination for navigating lists of results
181  
-
182  
-    # controller
183  
-    def list
184  
-      @pages, @people =
185  
-        paginate :people, :order => 'last_name, first_name'
186  
-    end
187  
-
188  
-    # view
189  
-    <%= link_to "Previous page", { :page => @pages.current.previous } if @pages.current.previous %>
190  
-    <%= link_to "Next page", { :page => @pages.current.next } if @pages.current.next %>
191  
-
192  
-  {Learn more}[link:classes/ActionController/Pagination.html]
193  
-
194  
-
195 180
 * Easy testing of both controller and rendered template through ActionController::TestCase
196 181
 
197 182
     class LoginControllerTest < ActionController::TestCase
@@ -256,30 +241,6 @@ A short rundown of the major features:
256 241
   {Learn more}[link:classes/ActionController/Caching.html]
257 242
 
258 243
 
259  
-* Component requests from one controller to another
260  
-
261  
-    class WeblogController < ActionController::Base
262  
-      # Performs a method and then lets hello_world output its render
263  
-      def delegate_action
264  
-        do_other_stuff_before_hello_world
265  
-        render_component :controller => "greeter",  :action => "hello_world"
266  
-      end
267  
-    end
268  
-  
269  
-    class GreeterController < ActionController::Base
270  
-      def hello_world
271  
-        render_text "Hello World!"
272  
-      end
273  
-    end
274  
-  
275  
-    The same can be done in a view to do a partial rendering:
276  
-  
277  
-      Let's see a greeting:
278  
-      <%= render_component :controller => "greeter", :action => "hello_world" %>
279  
-
280  
-  {Learn more}[link:classes/ActionController/Components.html]
281  
-  
282  
-
283 244
 * Powerful debugging mechanism for local requests
284 245
 
285 246
     All exceptions raised on actions performed on the request of a local user

0 notes on commit 7b52dec

Please sign in to comment.
Something went wrong with that request. Please try again.