José Valim
312f433241
Clear DescendantsTracker on each request.
2010-06-19 17:51:44 +02:00
Josh Kalderimis
9d3eeb9053
fix for :shallow in router not generating helpers for create, update, and destroy actions when :only or :except are used
...
[#4900 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-06-18 13:59:14 -07:00
Andrew White
6db9558416
Add shallow routing option to new router [ #3765 status:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2010-06-17 09:52:55 -05:00
Rizwan Reza
b602ce6191
Refactored duplication into a separate method. Dropped class variable.
2010-06-11 16:34:53 +02:00
Rizwan Reza
6148b2dd73
Adding missing docs to delete cookies with :all which were added that way.
2010-06-11 16:34:53 +02:00
Rizwan Reza
f99132663b
Took out the domain option logic to cookies.rb.
2010-06-11 16:34:52 +02:00
Rizwan Reza
5609149d84
Moved Domain regexp to a constant and added comments.
2010-06-11 16:34:52 +02:00
Rizwan Reza
edbb78d6cc
The previous commit didn't work with complex domains, which is now fixed.
2010-06-11 16:34:52 +02:00
Rizwan Reza
44830ead1c
Add support for multi-subdomain session by setting cookie host in session cookie so you can share session between www.example.com, example.com and user.example.com. [ #4818 state:resolved]
...
This reverts commit 330a89072a .
2010-06-11 16:34:52 +02:00
José Valim
330a89072a
Revert "Add support for multi-subdomain session by setting cookie host in session cookie so you can share session between www.example.com, example.com and user.example.com. [ #4818 state:resolved]"
...
It does not work for domains like co.uk and com.br.
This reverts commit c4d6245e87 .
2010-06-10 20:08:01 +02:00
Guillermo Álvarez
c4d6245e87
Add support for multi-subdomain session by setting cookie host in session cookie so you can share session between www.example.com, example.com and user.example.com. [ #4818 state:resolved]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2010-06-10 12:05:12 -04:00
José Valim
211799450d
Ensure show exceptions middleware properly filters backtrace before logging.
2010-06-09 22:49:14 +02:00
José Valim
5c9f27abaa
Add more cases to previous commit [ #4394 state:resolved]
2010-06-08 23:26:51 +02:00
Jan De Poorter
4560385fa4
Make sure namespaces are nested within resources
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-08 23:21:53 +02:00
David Heinemeier Hansson
03be27092b
Revert "Add shallow routes to the new router" for now. Needs more work.
...
This reverts commit 67a60ee314 .
2010-06-08 16:20:46 -04:00
José Valim
68b4720fd1
Accept both regexps and strings for LOCALHOST.
2010-06-08 20:11:05 +02:00
Prem Sichanugrist
c6ad64394b
Make sure that rails recognized the full notation of IPv6 loopback address, and recognize 127.0.0.0/8 in IPv4
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-08 19:45:40 +02:00
Andrew White
a7edddf605
Fix resources ignoring scope options
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-08 19:33:27 +02:00
Andrew White
4740fbac85
Add support for actions on a new resource to the new routing DSL [ #4328 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-08 09:11:39 +02:00
Diego Carrion
67a60ee314
Add shallow routes to the new router [ Closes #3765 ]
2010-06-07 18:09:20 -05:00
wycats
d6953cbfd3
regular expressions are usually ASCII-encoded, so force_encoding the content of a Node to the encoding of the regular expression is wrong.
2010-06-07 18:06:08 -04:00
wycats
eebac02606
Make named helpers unprotected without becoming actions [ #4696 state:resolved]
2010-06-07 15:29:55 -04:00
José Valim
1a8f784a23
member on resource should not expect an ID.
2010-06-07 11:20:54 +02:00
Rizwan Reza
ac9f8e1b7b
Router accepts member routes on resource. [ #4624 state:resolved]
2010-06-06 21:27:52 -04:00
Jeremy Kemper
509f3d7d2f
Simplify middleware stack lazy compares using named const references
2010-06-05 22:09:16 -07:00
Jeremy Kemper
7ace23abac
Restore flash sweep
2010-06-05 22:05:57 -07:00
wycats
a6b3942843
Optimize LookupContext
2010-06-04 20:11:06 -07:00
wycats
b8af484476
No need to unescape params twice if we came from Rack::Mount
2010-06-04 20:11:06 -07:00
wycats
cb1b2a719a
Stop the flash middleware from forcibly loading sessions even if the user doesn't use sessions at all
2010-06-04 20:11:05 -07:00
wycats
ab1407cc5b
Improve performance of commonly used request methods
2010-06-04 20:11:04 -07:00
Jeremy Kemper
bd9805871b
Include backtrace in failsafe log. Rescue possible exceptions in failsafe response.
2010-06-04 18:25:32 -07:00
José Valim
9a93844aba
Add :only and :except to controllers MiddlewareStack. This allows
...
you to do the following:
class PostsController < ApplicationController
use AutheMiddleware, :except => [:index, :show]
end
2010-05-30 15:53:14 +02:00
José Valim
19d8c8cbe4
Remove the laziness from the middleware stack.
2010-05-29 22:29:46 +02:00
wycats
45e60283e7
Removing Metal from Rails 3.
...
If you have existing Metals, you have a few options:
* if your metal behaves like a middleware, add it to the
middleware stack via config.middleware.use. You can use
methods on the middleware stack to control exactly where
it should go
* if it behaves like a Rack endpoint, you can link to it
in the router. This will result in more optimal routing
time, and allows you to remove code in your endpoint
that matches specific URLs in favor of the more powerful
handling in the router itself.
For the future, you can use ActionController::Metal to get
a very fast controller with the ability to opt-in to specific
controller features without paying the penalty of the full
controller stack.
Since Rails 3 is closer to Rack, the Metal abstraction is
no longer needed.
2010-05-29 20:08:00 +02:00
José Valim
d3e62fc57c
Avoid creating a Rack::Response object in the cookie middleware since it may stream the body.
2010-05-18 17:47:56 +02:00
José Valim
c536835957
Cut the fat and make session stores rely on request.cookie_jar and change set_session semantics to return the cookie value instead of a boolean.
2010-05-18 03:18:23 +02:00
José Valim
26e645fa00
Remove deprecated methods since 2-3-stable.
2010-05-18 02:11:50 +02:00
José Valim
0c3cde404a
Kill legacy dispatcher.
2010-05-18 02:07:59 +02:00
José Valim
25f7c030e4
Simplify cookie_store by simply relying on cookies.signed.
2010-05-18 02:05:20 +02:00
José Valim
941b653627
Rely on set and delete cookie logic from rack.
2010-05-18 01:51:45 +02:00
José Valim
107c6381a0
Allow root to be given in the resources scope without need to specify :on => collection.
2010-05-17 17:39:32 +02:00
Martin
e807476d31
added convenience methods #notice and #alert to flash.now
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-15 16:52:19 +02:00
Paco Guzman
cdf700147c
fix assert_select messages to its declaration behaviour
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-15 16:31:36 +02:00
Josh Kalderimis
446b0ffe1c
corrected error message in session/cookie_store [ #4546 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-10 12:37:01 +03:00
José Valim
6c2d974e15
Use annoted source code in Template:Error to avoid special cases in the show exceptions middleware.
2010-05-09 12:52:30 +03:00
Lawrence Pit
1e1d30715e
Fix parsing xml input by ActionDispatch::ParamsParser
...
[#4437 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-06 20:34:47 -07:00
Carl Lerche
6c280f3398
RouteSet does not raise ActionController::RoutingError when no routes match anymore. Instead, it follows the X-Cascade convention. ShowExceptions checks for X-Cascade so that the routing error page can still be displayed.
2010-04-30 16:40:42 -07:00
Santiago Pastorino
920df0a475
Make ActionDispatch url_for use HWIA symbolize_keys
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-22 09:06:55 -07:00
J Smith
275e839b8d
Ensure that url_for uses symbolized keys in the controller. [ #4391 ]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-22 16:47:36 +02:00
Santiago Pastorino
961aa70e4a
Some require indifferent_access added
...
Signed-off-by: Xavier Noria <fxn@ubuntu.(none)>
2010-04-21 07:45:29 -07:00