Skip to content
This repository
Browse code

Fixed links to the Routing Guide.

  • Loading branch information...
commit 3b6a40a7bd1901274807fa6f22db6083dda18a28 1 parent ece603c
Joseph Pecoraro authored May 30, 2009
4  railties/guides/source/form_helpers.textile
Source Rendered
@@ -292,7 +292,7 @@ form_for(:article, @article, :url => article_path(@article), :method => "put")
292 292
 form_for(@article)
293 293
 </ruby>
294 294
 
295  
-TIP: Declaring a resource will automatically generate the +*_path+ functions above.  The short syntax expects such a function to exist based on the model of the object it is acting on. To declare a model as a resource, add the model to the resources list in the routes file +config/routes.rb+ like so: <pre>map.resources :articles</pre>  Declaring a resource has a number of side-affects. See "Rails Routing From the Outside In":http://guides.rubyonrails.org/routing.html#restful-routing-the-rails-default for more information on setting up and using resources.
  295
+TIP: Declaring a resource will automatically generate the +*_path+ functions above.  The short syntax expects such a function to exist based on the model of the object it is acting on. To declare a model as a resource, add the model to the resources list in the routes file +config/routes.rb+ like so: <pre>map.resources :articles</pre>  Declaring a resource has a number of side-affects. See "Rails Routing From the Outside In":routing.html#restful-routing-the-rails-default for more information on setting up and using resources.
296 296
 
297 297
 Notice how the short-style +form_for+ invocation is conveniently the same, regardless of the record being new or existing. Record identification is smart enough to figure out if the record is new by asking +record.new_record?+. It also selects the correct path to submit to and the name based on the class of the object.
298 298
 
@@ -314,7 +314,7 @@ will create a form that submits to the articles controller inside the admin name
314 314
 form_for [:admin, :management, @article]
315 315
 </ruby>
316 316
 
317  
-For more information on Rails' routing system and the associated conventions, please see the "routing guide":./routing_outside_in.html.
  317
+For more information on Rails' routing system and the associated conventions, please see the "routing guide":routing.html.
318 318
 
319 319
 
320 320
 h4. How do forms with PUT or DELETE methods work?

0 notes on commit 3b6a40a

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