José Valim
ebd71fd0e3
Fix a regression and also fix broken test.
2011-12-08 21:00:34 +01:00
Akira Matsuda
be7ab83b64
A test case to ensure that AC::Metal#response_body= always wraps the given value in an Array in both Ruby 1.8 and 1.9 (refs #3581 )
2011-11-10 10:54:56 +09:00
José Valim
43d27e9105
Deprecate passing the template handler in the template name.
...
For example, calling hello.erb is now deprecated. Since Rails 3.0
passing the handler had no effect whatsover. This commit simply
deprecates such cases so we can clean up the code in later releases.
2011-09-22 15:37:38 +02:00
José Valim
119e9e2daf
Get rid of update_details in favor of passing details to find_template.
2011-09-22 15:03:05 +02:00
José Valim
7da88c5b29
Remove stream at the class level.
...
This is because only template rendering works with streaming.
Setting it at the class level was also changing the behavior
of JSON and XML responses, closes #1337 .
2011-07-06 20:24:30 -03:00
Lee Reilly
4f234bfd79
Corrected some typos and American vs. Queen's English issues
2011-05-29 12:40:24 -07:00
José Valim
9c2c25c1a1
Revert to old semantics, use available_action? instead of action_method?.
2011-05-06 18:44:18 +02:00
José Valim
13df194c00
Tidy up pending TODOs after discussion with Mr. Gatoz (@wycats).
2011-05-01 19:39:57 +02:00
José Valim
46611a995d
log errors when an exception happens when streaming.
2011-05-01 13:40:14 +02:00
José Valim
6960a230fa
Add a test for rendering from the controller context.
2011-05-01 13:40:14 +02:00
José Valim
069e9b004f
Do not stream on HTTP/1.0.
2011-04-19 15:04:28 +02:00
José Valim
b398520c14
Output a redirect to the 500 page if something happens when streaming.
...
Currently, we output:
"><script type="text/javascript">window.location = "/500.html"</script></html>
2011-04-19 12:26:11 +02:00
José Valim
3b0f917b1d
Test explicit skip.
2011-04-18 14:27:49 +02:00
José Valim
07fde1a3d3
Just define the controller if fibers are defined.
2011-04-18 14:27:49 +02:00
José Valim
389d15ef13
Body... wanna *stream* my body? Body... such a thrill my body!
...
Added stream as class level method to make it explicit when to stream.
Render also accepts :stream as option.
2011-04-18 08:55:41 +02:00
Aaron Patterson
c630750fa5
switch to using comments to comment things
2011-04-15 14:13:46 -07:00
José Valim
d6bd606bdd
render :once, YAGNI.
2011-04-15 21:11:54 +02:00
Xavier Noria
5850f16935
removes the RJS template handler
2011-04-13 13:23:18 +02:00
Xavier Noria
eea66892c8
removes support for render :update
2011-04-13 13:23:17 +02:00
Santiago Pastorino
cc58fe79ac
Implicit actions named not_implemented can be rendered
2011-04-02 23:47:50 -03:00
José Valim
ba51aa0b1b
Make action_method? public and change implicit rendering to override it instead.
2011-03-30 17:22:05 +02:00
José Valim
6b1018526f
Use Mime::Type references.
2011-02-08 14:14:26 -08:00
Aaron Patterson
ea25224046
cleaning up some warnings on 1.9.3
2011-02-07 16:44:27 -08:00
wycats
e03e1fdbc8
Speed up template inheritance and remove template inheritance option
2010-12-26 23:56:09 -08:00
artemave
6c5a3bb312
all tests pass
2010-12-26 22:32:15 -08:00
artemave
ce21ea7832
#948 make template inheritance optional
2010-12-26 22:32:15 -08:00
artemave
ddd85ef9c6
#948 template_inheritance
2010-12-26 22:32:15 -08:00
Xavier Noria
799a6fa047
realigns a series of hash arrows
2010-11-21 10:25:23 +01:00
Jan Maurits Faber
f04ec6a227
Added support for Erubis <%== tag
...
<%== x %> is syntactic sugar for <%= raw(x) %>
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#5918 status:committed]
2010-11-08 09:55:55 +13:00
Santiago Pastorino
2382667955
Fix problems trying to functional test AC::Metal controllers
...
[#5393 state:committed]
2010-11-06 21:15:03 -02:00
José Valim
01ab6f961b
Remove :cache => true on lookup templates initialization.
2010-10-14 09:47:49 +02:00
José Valim
37d78028b2
render :once should consider the current controller prefix.
2010-10-14 09:27:18 +02:00
José Valim
682368d4ba
Use identifiers for template equality.
2010-10-10 23:12:22 +02:00
José Valim
940b57789f
Add support to render :once.
...
This will be used internally by sprockets to ensure requires are executed just once.
2010-10-10 12:43:26 +02:00
wycats
8cb2cfbf71
Fix a few bugs when trying to use Head standalone
2010-10-10 00:54:11 -07:00
José Valim
c7760809bf
Allow cache to be temporarily disabled through lookup_context.
2010-10-07 21:31:31 +02:00
José Valim
c563f10f3e
render :template => 'foo/bar.json' now works as it should.
2010-10-07 21:31:31 +02:00
José Valim
74dd8a3681
Move ETag and ConditionalGet logic from AD::Response to the middleware stack.
2010-10-03 21:25:22 +02:00
Collin Miller
96650f704a
added block arguments to ActionController::Metal#use
...
Useful for cases such as warden, where a block configuration is taken.
class SomeController < ApplicationController
use RailsWarden::Manager do |manager|
manager.default_strategies :facebook_oauth
manager.failure_app = SomeController.action(:authorize)
end
end
2010-09-12 07:35:54 +08:00
Piotr Sarnacki
c15bb4901b
Fixed routes to use new API in a few more actionpack tests
2010-09-05 13:44:37 +02:00
Piotr Sarnacki
b3eb26a161
Removed deprecated RouteSet API, still many tests fail
2010-09-05 13:44:36 +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
knapo
995b1a243c
Fix controller_name for non default controller paths [ #4901 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-23 01:37:52 +02:00
José Valim
981f81275b
Fix case when rendering a partial inside RJS with inherited layout [ #4786 state:resolved]
2010-06-07 22:22:54 +02: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
Neeraj Singh
b462952886
Use better assertion methods for testing
...
[#4645 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-19 10:18:36 +02:00
Santiago Pastorino
5699de1d15
Added test get to js should have a header with content-type text/javascript
2010-04-16 11:03:16 -03:00
Santiago Pastorino
8a8da68d1f
Tidy up a bit this test file
2010-04-16 11:03:16 -03:00
Santiago Pastorino
462a7b45f6
Revert "Add test case which check content type when rendering rjs" partial in html template" rendering rjs in html doesn't make sense, it would just output javascript into the template, no script tag
...
This reverts commit dc251389d1ab4303b80a22642f4241940b73cbe7.
2010-04-16 11:03:16 -03:00
Stanko Alexander
dc251389d1
Add test case which check content type when rendering rjs partial in html template
...
Signed-off-by: wycats <wycats@gmail.com>
2010-04-13 13:09:41 -07:00