Florent Piteau
89ed9fbd19
Don't reuse a closed flash when using now
2011-04-20 04:32:26 +08:00
José Valim
914218ef30
Let's use inheritance here, shall we?
2011-04-19 21:32:58 +02:00
David Heinemeier Hansson
626bcc9bf4
Switch to asset_path and make it available in the Sprockets::Context (now you can do asset_path("logo.png") in a stylesheet.css.erb file and get fingerprinting)
2011-04-19 19:05:07 +02:00
David Heinemeier Hansson
a3a5c7eba3
All assets, including images, audio, and video, now uses the asset pipeline when its on
2011-04-19 18:07:42 +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
a66c917235
Do not inherit from Rack::Response, remove a shit-ton of unused code.
2011-04-19 11:54:12 +02:00
José Valim
6380f1a9f4
Be sure to not store the closed flash in the session.
2011-04-19 10:34:17 +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
José Valim
ab105e6072
content_for should work with provide.
2011-04-16 11:34:07 +02:00
José Valim
3e0aedba90
Add more tests, ensure we never yield outside the fiber context and that we swap buffers when moving from parent to child.
2011-04-16 11:22:36 +02:00
José Valim
29078ff8f1
Basic tests for streaming. Basic tests for provide.
2011-04-16 10:50:33 +02:00
José Valim
62668cccb9
The magic medicine worked.
2011-04-16 10:31:55 +02:00
José Valim
e30ca001ef
Yo dawg, I heard you like streaming. So I put a fiber, inside a block, inside a body, so you can stream.
2011-04-16 10:28:47 +02:00
José Valim
2dd43c3f80
Buffer should be an option passed down to template rendering.
2011-04-16 02:10:36 +02:00
José Valim
fad214b9e1
Initial work on fibered layout.
2011-04-16 01:10:13 +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
José Valim
d5ad92ced1
Make static faster as we don't have to serve multiple paths anymore.
2011-04-15 20:09:39 +02:00
David Chelimsky
a26d407f63
ActionView::PathSet# accepts String or Array
...
- Closes #6692
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-04-13 21:45:51 +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
Xavier Noria
86d6cdd7f7
fixes the name of a test
2011-04-13 13:24:33 +02:00
Xavier Noria
7c9d91f53e
removes render :update from views
2011-04-13 13:24:32 +02:00
Xavier Noria
90de26703e
removes ActionView::Helpers::PrototypeHelper
2011-04-13 13:24:32 +02:00
Xavier Noria
06bdaae071
removes ActionView::Helpers::ScriptaculousHelper
2011-04-13 13:24:31 +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
Xavier Noria
3223e04a21
removes support for RJS in button_to_function
2011-04-13 13:23:16 +02:00
Xavier Noria
b878757c50
removes assert_select_rjs
2011-04-13 13:23:16 +02:00
Xavier Noria
8449da929e
removes support for RJS in link_to_function
2011-04-13 13:23:16 +02:00
Matt Duncan
93def19063
Fixing distance_of_time_in_words range near 2 days
2011-04-13 16:14:52 +08:00
Joshua Peek
ed24595647
Merge branch 'master' into sprockets
2011-04-12 21:56:00 -05: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
d6edaeeaf8
Fix failing test case on master
...
It turned out that I overlook at some replacements ..
2011-04-10 22:40:21 -07: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
James Robinson
2cdc1f0cd5
Make csrf_meta_tags use the tag helper
...
Improved formatting of csrf_helper and improved test coverage
2011-04-08 02:21:08 +02:00
Aaron Patterson
a7c5d40d80
Merge branch 'master' of github.com:rails/rails
...
* 'master' of github.com:rails/rails:
Cache flash now
Revert "Use freeze instead of close!"
Revert "Eagerly load Signed and Permanent cookies"
cookies here
Eagerly load Signed and Permanent cookies
Use freeze instead of close!
2011-04-07 09:35:24 -07:00
Santiago Pastorino
03d561ad77
Revert "Use freeze instead of close!"
...
This reverts commit 29592a7f09 .
2011-04-07 09:26:04 -03:00
Santiago Pastorino
17205435f8
cookies here
2011-04-07 09:20:35 -03:00
Aaron Patterson
1e90229e04
many args does not make sense with the current implementation because of how use works
2011-04-06 18:13:16 -07:00
Aaron Patterson
32f876786a
getting the flash hash under test
2011-04-06 18:01:03 -07:00
Aaron Patterson
76c2ea7882
favor composition over inheritance, have FlashHash delegate to a Hash
2011-04-06 17:26:55 -07:00
Santiago Pastorino
29592a7f09
Use freeze instead of close!
2011-04-06 20:53:48 -03:00
Santiago Pastorino
9f765f4e09
Delete useless arguments
2011-04-06 19:18:41 -03:00
Santiago Pastorino
ed04243629
Delete useless env variable
2011-04-06 19:15:33 -03:00
Santiago Pastorino
0d45567362
Add tests to verify that signed and permanent cookies raises if someone tries
...
to modify the cookies when it was already streamed back to the client
or converted to HTTP headers
2011-04-06 19:12:35 -03:00
Santiago Pastorino
0e4748cd41
Make process reuse the env var passed as argument
2011-04-06 16:37:55 -03:00
Santiago Pastorino
0c5aded092
raise if someone tries to modify the cookies when it was already streamed back to the client or converted to HTTP headers
2011-04-06 15:47:58 -03:00