Xavier Noria
d491130236
Merge branch 'master' of git://github.com/lifo/docrails
...
Conflicts:
actionpack/lib/action_view/helpers/date_helper.rb
railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt
2011-05-14 11:21:27 +02:00
Xavier Noria
e5524d538c
minor edits after going through what's new in docrails
2011-05-14 11:15:43 +02:00
Sebastian Martinez
ab880b9eb0
Follow code conventions on docs
2011-05-10 20:55:31 -03:00
James Miller
bb1af05247
Missing an end in routing docs
2011-05-09 18:46:07 -07:00
Sebastian Martinez
ed8962c821
more fixed-fonts here
2011-05-09 22:21:00 -03:00
José Valim
80bf68aa1b
prepend the assets route instead of appending, closes #436
2011-05-08 12:59:04 +02:00
Jacob Poulsgaard Tjoernholm
9f9446f271
Update the description of the :path option to #resources to reflect that it sets the actual path, not a prefix. Most instances were already fixed.
2011-05-06 10:26:17 +02:00
Sebastian Martinez
9be7911e87
Use #remove_possible_method instead here
2011-05-04 15:13:40 -03:00
Josh Kalderimis
275529446e
raise an error if the old router draw method is used, along with a message advising them to either upgrade their routes or add rails_legacy_mapper to their Gemfile
2011-05-03 16:07:25 +02:00
Piotr Sarnacki
820c0feda3
Explicitly define main_app proxy
2011-04-25 14:56:58 +02:00
Prem Sichanugrist
733bfa63f5
Remove #among? from Active Support
...
After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now.
It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`.
2011-04-13 20:25:28 +08:00
David Heinemeier Hansson
d1575ae1b9
Change Object#either? to Object#among? -- thanks to @jamesarosen for the suggestion!
2011-04-12 00:23:07 +02:00
Prem Sichanugrist
a9f3c9da01
Using Object#in? and Object#either? in various places
...
There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?.
2011-04-11 03:17:09 +08: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
Xavier Noria
3b91b3726d
Merge branch 'master' of git://github.com/lifo/docrails
2011-03-23 21:52:33 +01:00
Prem Sichanugrist
2ddfdba9a0
Do not show optional (.:format) block for wildcard route [ #6605 state:resolved]
...
This will make the output of `rake routes` to be correctly match to the behavior of the application, as the regular expression used to match the path is greedy and won't capture the format part by default
2011-03-22 09:19:40 -07:00
Gabriel Horner
61781d84c1
doc :anchor option for #match in routes
2011-03-15 09:23:17 -04:00
Aaron Patterson
9f2706d770
use a list to represent the supported verbs for a route object
2011-03-14 18:26:30 -07:00
Aaron Patterson
9ba2d422f5
stop splatting arguments so that we can understand wtf is going on
2011-03-14 16:17:05 -07:00
Aaron Patterson
833a90594e
RegexpWithNamedGroups is only used for path_info, so only apply to path info
2011-03-14 15:17:29 -07:00
Aaron Patterson
acd4bfb537
Just define methods directly on the class rather than use the module
...
indirection.
clever--
2011-03-11 18:16:47 -08:00
Aaron Patterson
89c5b9aee7
do not automatically add format to routes that end in a slash
2011-03-11 18:06:22 -08:00
Aaron Patterson
0c777bace2
stop being clever and just call methods on the Route object
2011-03-08 16:18:27 -08:00
Andrew White
e00867bc43
Raise ArgumentError if route name is invalid [ #6517 state:resolved]
2011-03-06 07:08:50 +00:00
R.T. Lechow
87e9e3f9af
Action Pack typos.
2011-03-05 11:56:35 +01:00
Aaron Patterson
dd41387f34
use newer class cache api
2011-03-02 09:35:10 -08:00
Aaron Patterson
7b6bfe84f3
refactor Reference to a ClassCache object, fix lazy lookup in Middleware so that anonymous classes are supported
2011-03-01 17:20:35 -08:00
Andrew White
460a341682
Fix named route helper for routes nested inside deeply nested resources
...
[#6416 state:resolved]
2011-02-14 02:56:09 +00: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
385be358cf
Fix assert_recognizes with block constraints [ #5805 state:resolved]
2011-02-13 23:24:46 +00:00
Xavier Noria
8b5dc9caa5
Merge branch 'master' of git://github.com/lifo/docrails
2011-02-05 19:47:08 +01:00
Gabriel Horner
277327bb7f
improve routing docs, mostly for #match
2011-02-05 13:12:49 -05:00
german
adbae9aab8
fixed bug with nested resources within shallow scope
...
[#6372 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-04 17:07:51 -02:00
Gabriel Horner
ac15647bf0
keep options titles consistent to "Options"
2011-02-03 23:51:06 -05:00
Jonathan Dance + Gabriel Horner
d1ef543794
explain different ways to use match()
2011-01-29 17:29:06 -05:00
Jonathan Dance + Gabriel Horner
fab16fded9
organize and expand on options for routing methods
2011-01-29 17:29:06 -05:00
Jonathan Dance + Gabriel Horner
49744bdaee
fix cross-references in HttpHelper methods
2011-01-28 19:25:12 -05:00
Matt Jankowski
cc9301f459
clarify what the "they" that are is and what the "are" in question is
2011-01-27 12:25:22 -05:00
Aaron Patterson
16ae08fff0
use raise to create exceptions and to set the backtrace
2011-01-12 11:15:11 -08:00
Aaron Patterson
5008d33eee
dry up case / when statement
2010-12-17 11:31:15 -08:00
Ryan Bigg
a81f68e879
Fix indentation on the namespace method's documentation
2010-12-13 13:03:41 +10:00
Ryan Bigg
751733ab96
Provide an example for ActionDispatch::Routing::Mapper#scope
2010-12-11 17:27:14 +10:00
Xavier Noria
c6612d2bb3
Merge branch 'master' of git://github.com/lifo/docrails
...
Conflicts:
activerecord/lib/active_record/transactions.rb
2010-12-11 00:55:25 +01:00
Ryan Bigg
dbf955c03b
Action Controller Overview: Remove dead link to the API docs for filters
2010-12-10 15:55:46 +10:00
Ryan Bigg
f0d4b7f2a6
root method options are the same as the match method
2010-12-10 09:34:40 +10:00
José Valim
28cf77203b
Check if the routes object really responds to define_mount_prefix.
2010-12-09 13:15:25 +01:00
Ryan Bigg
fe0e3880e8
root route should go at the *top* of the routes file, because it is the most popular route and should be matched first
2010-12-09 20:21:08 +10:00
Ryan Bigg
d2f98e5b55
indent code samples for mount doc
2010-12-09 20:03:14 +10:00
Ryan Bigg
a47f31c593
mapper.rb: add "options" to make the default-to-namespace-name line read better
2010-12-09 20:01:42 +10:00
José Valim
78afe68afb
Merge remote branch 'joshk/redirect_routing'
...
Conflicts:
actionpack/CHANGELOG
actionpack/lib/action_controller/metal/mime_responds.rb
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-12-03 12:27:50 +01:00