Commit Graph

84 Commits

Author SHA1 Message Date
Ryan Sandridge
83bc2c2760 Fixing typo in Routing Guide. 2011-12-10 15:58:08 -05:00
Alexey Vakhov
d106b34bd5 Update routing guides, root route should be at the top of the file 2011-10-31 10:36:38 +04:00
Hendy Tanata
79a719a6d2 Grammar fixes for the routing guide. 2011-10-06 14:03:46 +08:00
Prem Sichanugrist
d6c7185d77 Update Rails routing guide to mention that redirect() is a 301 permanent redirect
I had to try out myself to realize that it's 301, so this should be helpful to everyone.
2011-10-05 15:31:14 -03:00
Vijay Dev
9980f46ca2 No more changelogs inside guides 2011-09-15 00:13:29 +05:30
Erik Michaels-Ober
c17254319b Add documentation for :format => true 2011-07-25 14:13:26 -07:00
Xavier Noria
ace3723d2f Merge branch 'master' of git://github.com/lifo/docrails 2011-07-23 12:15:41 +02:00
Hendy Tanata
193e4de206 Better formatting of route requirements in rake:routes.
Previously it was:

    {:controller=>"photos", :action=>"show", :id=>/[A-Z]\d{5}/}

Now it becomes:

    photos#show {:id=>/[A-Z]\d{5}/}
2011-07-16 04:23:05 +08:00
Vishnu Atrai
b6d5612f55 Should be "match" instead of "map" 2011-07-15 23:56:58 +05:30
Vijay Dev
ff410c4ea9 Revert "Fix wildcard route code examples."
This reverts commit 0894d73c7552a4c7d576b7d3692c6a18faadd273.

Reason: CHANGELOGs should not be changed in docrails.
2011-07-15 23:06:37 +05:30
Hendy Tanata
0894d73c75 Fix wildcard route code examples.
Should be "match" instead of "map".
2011-07-15 22:24:04 +08:00
Hrvoje Šimić
812950e027 fixed paths, more consistent helpers and paths examples 2011-07-11 14:45:47 +02:00
Linux on Rails
72f51990b7 FIXED: error with url_for & link_to when we have nested resources. 2011-06-03 03:01:41 -07:00
Lee Reilly
03f418370a Typo; changed 'Febuary' to 'February' 2011-05-25 13:15:59 -07:00
Stefan Rohlfing
4c50a0f800 Edited railties/guides/source/routing.textile via GitHub 2011-04-28 00:25:03 -07:00
Ronnie Miller
3050497a54 Grammer fix on note about wildcard routes 2011-04-22 14:50:52 -07:00
Sebastian Martinez
bbfc6cda82 Remove extra whitespaces from guides 2011-04-14 20:37:12 -03:00
Prem Sichanugrist
51551a0a5b Update the wildcard route to be non-greedy by default, therefore be able to match the (.:format) segment [#6605 state:resolved]
After some discussion with Andrew White, it seems like this is a better approach for handling a wildcard route. However, user can still bring back the old behavior by supplying `:format => false` to the route.

Signed-off-by: Andrew White <andyw@pixeltrix.co.uk>
2011-03-29 10:12:17 +01:00
tashian
e95b965926 Properly escaped a + in the dynamic segments TIP 2011-03-05 11:56:33 +01:00
Andrew White
fd7605826a Add notes on how to override the default :id constraint [#5994 state:resolved] 2011-02-14 01:01:20 +00:00
Andrew White
48fe62ee57 Remove incorrect assert_recognizes example 2011-02-14 00:09:05 +00:00
Vijay Dev
ebb732a7ec fix typos 2011-01-02 02:53:15 +05:30
Ryan Bigg
224e2d478a Routing guide: clarify what the :as option does for scopes 2010-12-31 17:50:37 +10:00
Ryan Bigg
9aef64f7a3 Routing guide: move scope documentation down to where it is referenced more plainly 2010-12-31 17:45:03 +10:00
Ryan Bigg
eaf67ca9c3 Routing guide: improve documentation for the scope method, demonstrating use of named parameters 2010-12-31 17:38:38 +10:00
Ryan Bigg
60447d8b00 Routing guide: mention that routes are matched from the top down in a note. 2010-12-29 10:57:59 +10:00
Santiago Pastorino
692b621d2a Tables style unification 2010-12-16 01:49:28 +05:30
Santiago Pastorino
4c5805dfab Add named helper to photo controller example 2010-12-16 01:49:28 +05:30
Santiago Pastorino
6f8cc0776b Add underline to header 2010-12-16 01:49:28 +05:30
Santiago Pastorino
edf5b57451 Add named helper output to translated paths example 2010-12-16 01:49:28 +05:30
Umar Sheikh
0b5671ccca for the root route to work, we need to delete the public/index.html.erb
file as well
2010-12-13 11:18:49 +05:00
vijay
61817d2630 fixed typos and rephrased few sentences in routing 2010-12-10 23:34:48 +05:30
Brian Alexander
51007f1dba Previous version inaccurately suggested that
resources :posts, :path => "/admin"

would route "/admin/posts" to the PostsController but it actually routed "/admin" to the PostsController
2010-11-21 19:54:05 -08:00
Xavier Noria
902ae14e65 guides: gives clear instructions for feedback, removes links to the now archived LH project 2010-11-19 21:46:12 +01:00
James Miller
c2c2b8b962 Add HTTP Verb Constraints (:via) to routing guide 2010-11-15 09:26:57 -07:00
Richard Hart
e43de58ab4 Updating routing namespace examples to use symbols and not strings. 2010-10-19 13:40:47 +01:00
Santiago Pastorino
afd76d7fe9 Fix error in routing guide edit_photo_path needs the id as param 2010-10-09 14:50:25 -02:00
Kulbir Saini
b1603990df Fixed routing examples in Routing guide. Updated URL to RoutingAssertions module. 2010-09-25 06:24:27 +05:30
Pedro Fayolle
78d140d06d Fixed typo (CategoriesControlleR -> CategoriesControlleR). 2010-09-23 18:26:21 -07:00
eparreno
5965219ca2 some fixes in routing guide 2010-09-22 22:11:15 +02:00
Jamison Dance
50b175030a fixed an unclear description in Sigular Resources. 2010-09-14 17:14:16 -06:00
Xavier Noria
d14e2987b5 the (public) routing DSL does not accept symbols for get|post|put|delete|match 2010-08-17 02:37:28 +02:00
Xavier Noria
a1fdf402c0 routing guide: wildcard segments are quite flexible, go beyond the simple use case 2010-08-16 01:14:09 +02:00
Santiago Pastorino
b451de0d6d Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
Xavier Noria
ddeaf6c887 routing guide: documents the CONTROLLER environment variable understood by the routes task 2010-08-08 18:31:19 +02:00
Bobby Wilson
4ed9bd6431 Changed code style that was incorrectly rendering block style instead of inline. 2010-07-21 20:34:00 -07:00
Xavier Noria
5cba663578 routing guide: say "path" when you mean path 2010-07-22 00:32:39 +02:00
Xavier Noria
b2818b2472 routing guide: a "photo" resource has by convention paths under "photos", in plural 2010-07-22 00:16:26 +02:00
Andrew White
0f96cea322 Add note about incompatibility of namespace and :controller 2010-07-07 05:32:26 +01:00
Andrew White
7d04a4be6b Reword routing guide so that we talk about prefixing as a use of :as rather than as a specific prefixing option (which :name_prefix used to be). 2010-07-04 08:05:58 +01:00