Joshua Peek
ce5f27b04b
Remove double scoping blocks and just use one
2009-12-08 16:13:00 -06:00
Joshua Peek
c4df6332a4
Seperate scope level for nesting resources
2009-12-08 16:06:46 -06:00
Joshua Peek
33658ea1ae
Don't use name prefix by itself unless as is an empty string
2009-12-08 15:50:44 -06:00
Joshua Peek
3d91d7f0a2
Routes added under resource collection should be prefixed with
...
resource collection name
2009-12-08 15:31:56 -06:00
Joshua Peek
1fc58a889d
Fixed named prefix scope in resource member and collection actions
2009-12-07 20:57:01 -06:00
Joshua Peek
0c34e3f41a
Ignore name_prefix unless there is an explicit name
2009-12-07 20:11:57 -06:00
Joshua Peek
81d7227c9b
Move base mapper methods into Base module so plugins can easily
...
extend the mapper
2009-12-07 19:59:23 -06:00
Joshua Peek
e86a82c52c
Move name_prefix merging into Scoping concern
2009-12-07 19:50:13 -06:00
Joshua Peek
e600b41c7f
Cleanup resource scoping by passing down the parent resource object
...
in the scope
2009-12-07 19:47:47 -06:00
Joshua Peek
5835447b6f
named_prefix doesn't join with "_"
2009-12-07 19:31:29 -06:00
Joshua Peek
e8489b43e2
Allow name_prefix to be pass into scope
2009-12-07 19:24:33 -06:00
Joshua Peek
40ad54e381
Allow scope to take :path and :controller options
2009-12-07 18:28:02 -06:00
Joshua Peek
66375434b6
Pass symbol in as route name when match is used with a symbol
2009-12-07 17:22:09 -06:00
Yehuda Katz
96e0638ce2
Should fix a few Sam Ruby fails.
2009-12-03 09:06:01 -08:00
Carlhuda
c1304098cc
Reorganize autoloads:
...
* A new module (ActiveSupport::Autoload) is provide that extends
autoloading with new behavior.
* All autoloads in modules that have extended ActiveSupport::Autoload
will be eagerly required in threadsafe environments
* Autoloads can optionally leave off the path if the path is the same
as full_constant_name.underscore
* It is possible to specify that a group of autoloads live under an
additional path. For instance, all of ActionDispatch's middlewares
are ActionDispatch::MiddlewareName, but they live under
"action_dispatch/middlewares/middleware_name"
* It is possible to specify that a group of autoloads are all found
at the same path. For instance, a number of exceptions might all
be declared there.
* One consequence of this is that testing-related constants are not
autoloaded. To get the testing helpers for a given component,
require "component_name/test_case". For instance, "action_controller/test_case".
* test_help.rb, which is automatically required by a Rails application's
test helper, requires the test_case.rb for all active components, so
this change will not be disruptive in existing or new applications.
2009-12-02 20:01:08 -08:00
Joshua Peek
399909b11c
Use to_query in route query string generation
2009-12-02 15:23:26 -06:00
Joshua Peek
8db038227c
Move controller namespace tracking into route set so it gets
...
reloaded in dev mode
2009-12-02 14:10:22 -06:00
Joshua Peek
4dee277a9b
Stop escaping "[]" in query string
2009-12-02 12:46:14 -06:00
Joshua Peek
84be6cfb64
Fork rack build nested query to support to_param
2009-12-02 12:33:33 -06:00
Jeremy Kemper
de40bc033a
Ensure Cache-Control max-age is an integer
2009-12-02 03:23:00 -08:00
Joshua Peek
ad26f066fe
Response#write is defined twice (this is why -w is good)
2009-12-01 23:29:28 -06:00
Joshua Peek
f22db809c9
Response#cache_control is defined later
2009-12-01 23:27:40 -06:00
Joshua Peek
75ae5bb022
cache_store and page_cache_directory are already defined in caching
...
and pages
2009-12-01 23:14:03 -06:00
Joshua Peek
97be8537eb
Fix @renderer warning
2009-12-01 22:58:56 -06:00
Joshua Peek
2fbd6f46fd
Simply track controller namespaces instead of a complete list of
...
possible controllers to route to
2009-12-01 22:48:42 -06:00
Joshua Peek
7fe19d415a
Make recognize try to constantize controller to see if it exists
2009-12-01 22:22:48 -06:00
Joshua Peek
44587b7fae
Merge branch 'master' of github.com:rails/rails
2009-12-01 14:53:39 -06:00
Joshua Peek
61a31f3d3d
Fix generating params with optional defaults [ #3404 state:resolved]
2009-12-01 14:52:19 -06:00
José Valim
6e30361260
Allow ActionController::Responder to have a common entry point for all formats.
...
Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
2009-12-01 08:23:43 -08:00
Joshua Peek
075f50d62c
Fix some nested resource generation tests
2009-11-29 18:17:14 -06:00
Joshua Peek
f69f9820ee
Wrap up http related routing helpers
2009-11-29 17:45:12 -06:00
Joshua Peek
312c3bfa24
Break down long match routing method
2009-11-29 17:39:37 -06:00
Joshua Peek
5da01a92c7
Make use of extract_options!
2009-11-29 17:01:14 -06:00
Joshua Peek
40ae2070d5
Extract Resource and SingletonResource helper objects
2009-11-29 16:59:44 -06:00
Joshua Peek
3f025e6408
Resource collection should be defined before member routes
2009-11-29 15:23:27 -06:00
Bryan Helmkamp
bb84cab2fc
Update reference to deprecated constant to avoid warnings
2009-11-28 23:41:03 -08:00
Yehuda Katz
45d8ff08a4
Remove reference to class that doesn't exist (ht: brynary)
2009-11-28 21:36:58 -08:00
Joshua Peek
59dbae145b
Privatize Routing.possible_controllers and fix brittle url helper
...
controller test loading.
2009-11-23 21:50:21 -06:00
Joshua Peek
15ab3a98a1
Find all controllers in memory to use for routing
2009-11-23 20:20:50 -06:00
Joshua Peek
f987e8561c
with_controllers is no longer used
2009-11-23 19:45:42 -06:00
Joshua Peek
8d351eac07
Extract Routing.controller_constraints
2009-11-23 19:44:43 -06:00
Joshua Peek
01c9f99c53
Kill dead routing internals helpers
2009-11-23 19:17:53 -06:00
Joshua Peek
ef771552b7
Don't really care about reloading routes when inflections are
...
changed.
2009-11-23 18:59:48 -06:00
Joshua Peek
4b325fcd1a
Update routing for rackmount 0.2 api changes
2009-11-19 17:58:57 -08:00
Joshua Peek
5df26dd7a9
Add basic nested named route support to new routing dsl. Also add a
...
bunch of pending tests.
2009-11-19 09:04:53 -08:00
Jeremy Kemper
e1385be025
Extract form_authenticity_param instance method so it's overridable in subclasses
2009-11-17 23:40:06 -08:00
Will Read
7fadb3f261
Allow explicit placement of hidden id element for nested models.
...
[#3259 state:resolved]
Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
2009-11-15 21:47:57 +01:00
Jeremy Kemper
3f54f3100b
Ruby 1.9.2: StringIO no longer has #path
2009-11-13 13:10:28 -08:00
José Valim
2cb47c742f
Split mime responder into smaller chunks and allow action to be configured.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-11-13 09:52:52 -08:00
Joshua Peek
a28d0ea33e
Remove rackmount const usage
2009-11-12 23:33:30 -06:00