Carlos Antonio da Silva
f0479cbbd5
Refactor fields_for to make the api more clear, and fix usage with non nested attributes and without object
2011-05-14 22:09:12 -03:00
José Valim
86a0f7f735
Add tests for content_for() for read, closes #475 .
2011-05-10 10:22:09 +02:00
José Valim
a9b72fbc9e
Optimize the most common resolver case.
2011-05-09 11:17:24 +02:00
José Valim
843cab6f98
Merge pull request #420 from burke/master
...
Accept single prefix in ActionView::MissingTemplate#initialize
2011-05-08 03:35:14 -07:00
José Valim
0a1ba4eab0
Always expand */*
2011-05-07 23:43:44 +02:00
mathieuravaux
fadd1fa3d3
Fixes ticket #6379 . Improved the handling of Accept headers containing */*.
...
`lookup_context#formats=` being too restrictive, "Accept: text/javascript, */*"
resulted in [:js, "*/*"] formats instead of [:js, :html].
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-05-07 23:35:52 +02:00
José Valim
7d7a353f77
Merge pull request #343 from asanghi/ampm
...
Allow AM/PM format in datetime selectors
2011-05-07 06:31:18 -07:00
José Valim
0e886fe10e
Merge pull request #280 from jballanc/frozen-string-strip-tags
...
Stripping tags from a frozen string
2011-05-07 03:44:19 -07:00
Burke Libbey
156039c4cf
Added a test for MissingTemplate change, and changed to use Array.wrap() as
...
requested by josevalim.
2011-05-06 14:02:31 -05:00
Aditya Sanghi
ae7d0d816d
Take leap years into account more seriously when calculating year distance [ #6074 state:resolved]
2011-05-06 15:42:05 +05:30
José Valim
6afc900191
Move prefixes to view paths as they are now a lookup context dependency.
2011-05-04 11:28:37 +02:00
Nick Sutterer
b4bc2c50ca
fixed test to assert initialization value.
2011-05-04 00:11:34 +02:00
Nick Sutterer
37f448e05e
added :prefixes accessor to LookupContext.
2011-05-03 23:38:44 +02:00
Daniel Lopes
c5d54be746
fix select_tag to have the same behavior of select
2011-05-03 11:39:27 -03:00
Aaron Patterson
81cfbf4146
removing auto_link and moving it to the rails_autolink gem. 💣
2011-05-02 15:43:33 -07:00
José Valim
46611a995d
log errors when an exception happens when streaming.
2011-05-01 13:40:14 +02:00
José Valim
33cc001f91
More cleanup and moving responsibilities around.
2011-05-01 13:40:12 +02:00
José Valim
2f683fd870
Remove more dependencies from the view.
2011-05-01 13:40:12 +02:00
José Valim
bebaccdf4a
Remove dependency from _template.
2011-05-01 13:40:12 +02:00
Aditya Sanghi
a869382a9f
Allow AM/PM in datetime selectors
2011-04-29 01:49:45 +05:30
José Valim
bf50222b0b
Merged pull request #327 from dcrec1/master.
...
Prefix option for number_to_human_size
2011-04-28 05:38:46 -07:00
Jason Garber
a07cee62c7
Allow a label with the value option to have value-specific translations.
2011-04-27 21:00:27 -06:00
Diego Carrion
07bbaaa3b1
added a :prefix option to number_to_human_size
2011-04-27 20:29:03 -03:00
Chad Krsek
b49a1192d3
asset helpers should understand scheme-relative URLs
2011-04-26 10:24:50 -07:00
Chad Krsek
7469041c59
Revert "asset helpers should understand scheme-relative URLs"
...
This reverts commit 057412ce38 .
2011-04-25 21:57:49 -07:00
Chad Krsek
057412ce38
asset helpers should understand scheme-relative URLs
2011-04-25 21:57:28 -07:00
Diego Carrion
873c13fc0d
added test for number_to_phone with an empty string and area code true
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-04-25 17:57:54 -03:00
Joost Baaij
783007a8ad
Replace example hostname with "example.com".
...
The hostname used in these comments actually exists, which is
undesirable. See also RFC 2606.
2011-04-21 16:32:02 +02: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
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
José Valim
d5ad92ced1
Make static faster as we don't have to serve multiple paths anymore.
2011-04-15 20:09:39 +02:00
Joshua Ballanco
c09538941f
Test for stripping tags from a frozen string.
...
This test will pass under Ruby 1.8 but fail under Ruby 1.9 because of
the change in behavior of gsub! w.r.t. frozen strings that do not
match the pattern used [ruby-core:23664].
2011-04-14 23:18:12 -04: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
3223e04a21
removes support for RJS in button_to_function
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