aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
Commit message (Collapse)AuthorAgeFilesLines
* Add asset_url helper and refactor the asset paths so that asset hosts can be ↵Chris Eppstein2011-06-272-8/+54
| | | | | | | | | | used during asset precompilation. Conflicts: actionpack/lib/action_view/asset_paths.rb actionpack/lib/sprockets/helpers/rails_helper.rb actionpack/test/template/sprockets_helper_test.rb
* Merge pull request #1796 from jdeseno/masterSantiago Pastorino2011-06-221-0/+7
|\ | | | | link_to doesn't allow rel attribute when also specifying method
| * Adds a test to check link_to with method & rel optionsJosh2011-06-211-0/+7
| |
* | Merge pull request #1778 from spohlenz/hash-modelsJosé Valim2011-06-221-0/+16
|\ \ | |/ |/| Fix nested fields_for when Hash-based model is passed.
| * Use real hash model in nested fields_for with hash model testSam Pohlenz2011-06-221-4/+2
| |
| * Test for extractable_options? within nested fields_for.Sam Pohlenz2011-06-201-0/+18
| | | | | | | | | | This fixes an error when a record object that is a subclass of Hash is passed to fields_for, which is incorrectly interpreted as field options.
* | Do not change a frozen text passed to simple_format text helperTadas Tamosauskas2011-06-201-2/+9
|/
* Make MissingTranslation exception handler respect :rescue_formatAndrew White2011-06-151-0/+8
|
* Define ActiveSupport#to_param as to_str - closes #1663Andrew White2011-06-121-0/+8
|
* Merge pull request #1552 from bogdan/selectPiotr Sarnacki2011-06-111-2/+18
|\ | | | | Fixing select[multiple] html specification problem.
| * Fixing select[multiple] html specification problem.Bogdan Gusiev2011-06-081-2/+18
| | | | | | | | Generating hidden input with same name before each multiple select
* | There are no snowmen hereDavid Lee2011-06-112-4/+4
| |
* | Revert "Make sure that we don't perform in-place mutation on SafeBuffer string"Santiago Pastorino and José Ignacio Costa2011-06-101-5/+0
| | | | | | | | This reverts commit 115e80dccc65c3ed9a9750649d9ca4ea2a7e64f1.
* | Make sure that we don't perform in-place mutation on SafeBuffer stringPrem Sichanugrist2011-06-101-0/+5
| | | | | | | | | | | | This will make sure `render :inline` is working. Closes #1633
* | Ensure number helpers can handle HTML safe strings - closes #1597.Andrew White2011-06-101-0/+7
| |
* | ensuring that json_escape returns html safe strings when passed an html safe ↵Aaron Patterson2011-06-091-0/+10
| | | | | | | | string
* | Make sure `escape_javascript` return `SafeBuffer` if the incoming argument ↵Prem Sichanugrist2011-06-091-0/+2
| | | | | | | | is already html_safe
* | Make escape_javascript happy to handle SafeBuffersPaul Gallagher2011-06-081-0/+7
|/ | | | | * see GH#1553 * allow for the fact that gsub on SafeBuffer does not pass match variables $1, $2 etc to a block
* remove warning: assigned but unused variableSantiago Pastorino2011-06-085-9/+6
|
* Added missing assert to test checking form with namespaced isolated model ↵Piotr Sarnacki2011-06-071-5/+5
| | | | and fixed helpers to work correctly in such case
* Allow multiple sources in Sprockets helpersGuillermo Iguaran2011-06-051-0/+6
|
* Fix typo in test.Andrés Botero2011-05-281-1/+1
|
* fixed asset_paths when called from sprockets for relative_url_rootjacott2011-05-281-0/+6
|
* removed deprecated methods, and related tests, from ActionPackJosh Kalderimis2011-05-242-25/+0
|
* Move the last pockets of Sprockets stuff into the Sprockets directorywycats2011-05-231-2/+1
|
* Move javascript/css helpers into the Sprockets helper and just have them ↵wycats2011-05-231-12/+12
| | | | override the old behavior
* Start moving some logic from being embedded in AV into the Rails Sprockets ↵wycats2011-05-231-0/+2
| | | | extensions
* Eliminate uninitialized instance variable warningwycats2011-05-221-2/+2
|
* Prepare the context in URLHelperTest so that there are no required ↵wycats2011-05-221-0/+2
| | | | uninitialized instance variables
* We don't need to load version any more as Sprockets.beta8 is included. Arun Agrawal2011-05-231-7/+0
|
* Merge branch '3-1-stable'Joshua Peek2011-05-221-2/+9
|\ | | | | | | | | | | Conflicts: actionpack/actionpack.gemspec activemodel/activemodel.gemspec
| * Add debug_asset supportJoshua Peek2011-05-221-2/+9
| |
* | Make sure that we're able to run Action Pack test standalone.Prem Sichanugrist2011-05-221-2/+7
| | | | | | | | | | | | | | | | Sprocket was trying to look for these two things: * `Rails::VERSION::STRING` * `.initializer(str)` in `Rails::Engine` This commit added require to version.rb into Abstract Unit, and mocking the `Rails::Engine.initializer` in `sprockets_helper_test.rb`
* | Add method fields_for_with_index to FormHelperJorge Bejar2011-05-211-0/+125
|/
* Example Usage updated for actionpack and actionmailer.Arun Agrawal2011-05-191-9/+9
|
* Refactor fields_for to make the api more clear, and fix usage with non ↵Carlos Antonio da Silva2011-05-141-0/+14
| | | | nested attributes and without object
* Add tests for content_for() for read, closes #475.José Valim2011-05-101-4/+12
|
* Optimize the most common resolver case.José Valim2011-05-091-1/+1
|
* Merge pull request #420 from burke/masterJosé Valim2011-05-081-0/+9
|\ | | | | Accept single prefix in ActionView::MissingTemplate#initialize
| * Added a test for MissingTemplate change, and changed to use Array.wrap() asBurke Libbey2011-05-061-0/+9
| | | | | | | | requested by josevalim.
* | Always expand */*José Valim2011-05-071-1/+1
| |
* | Fixes ticket #6379. Improved the handling of Accept headers containing */*.mathieuravaux2011-05-071-0/+5
| | | | | | | | | | | | | | `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>
* | Merge pull request #343 from asanghi/ampmJosé Valim2011-05-071-0/+55
|\ \ | | | | | | Allow AM/PM format in datetime selectors
| * | Allow AM/PM in datetime selectorsAditya Sanghi2011-04-291-0/+55
| | |
* | | Merge pull request #280 from jballanc/frozen-string-strip-tagsJosé Valim2011-05-071-0/+1
|\ \ \ | |_|/ |/| | Stripping tags from a frozen string
| * | Test for stripping tags from a frozen string.Joshua Ballanco2011-04-141-0/+1
| | | | | | | | | | | | | | | | | | 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].
* | | Take leap years into account more seriously when calculating year distance ↵Aditya Sanghi2011-05-061-0/+4
| | | | | | | | | | | | [#6074 state:resolved]
* | | Move prefixes to view paths as they are now a lookup context dependency.José Valim2011-05-041-0/+4
| | |
* | | fixed test to assert initialization value.Nick Sutterer2011-05-041-1/+1
| | |
* | | added :prefixes accessor to LookupContext.Nick Sutterer2011-05-031-0/+6
| | |