aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
Commit message (Collapse)AuthorAgeFilesLines
* Clean up unused methods from AV::Base and pass in the template object on ↵José Valim2010-10-103-11/+13
| | | | rendering.
* Add expire! and rerender to the template API. This will be used by SASS ↵José Valim2010-10-101-2/+47
| | | | template handler.
* Add some unit tests to Template#refresh.José Valim2010-10-101-4/+28
|
* Resolvers now consider timestamps.José Valim2010-10-101-0/+45
| | | | | | | | | | | Before this patch, every request in development caused the template to be compiled, regardless if it was updated in the filesystem or not. This patch now checks the timestamp and only compiles it again if any change was done. While this probably won't show any difference for current setups, but it will be useful for asset template handlers (like SASS), as compiling their templates is slower than ERb, Haml, etc.
* Deprecate old template handler API. Remove old handlers.José Valim2010-10-101-2/+2
|
* Add more docs and tests to templates.José Valim2010-10-091-0/+12
|
* Fix 1.9.2 failures.José Valim2010-10-081-4/+4
|
* fix rendering a partial with an array as its :object [#5746 state:resolved]Michael Koziarski2010-10-081-0/+4
| | | | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> Conflicts: actionpack/lib/action_view/render/partials.rb
* Allow cache to be temporarily disabled through lookup_context.José Valim2010-10-071-0/+21
|
* Remove locals dependency from template.José Valim2010-10-071-0/+1
| | | | | | This means that templates does not need to store its source anymore, allowing us to reduce the ammount of memory taken by our Rails processes. Naively speaking, if your app/views contains 2MB of files, each of your processes (after being hit by a bunch of requests) will take 2MB less of memory after this commit. This is extremely important for the upcoming features. Since Rails will also render CSS and JS files, their source won't be stored as well allowing us to decrease the ammount of memory taken.
* Rename _assigns to view_assigns in AV::TCDavid Chelimsky2010-10-031-0/+31
| | | | | | | | | - also add tests - also deprecate _assigns [#5751 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* added test for form_for with search_fieldAditya Sanghi2010-10-021-0/+15
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* delete repeated codeAaron Patterson2010-10-011-18/+0
|
* Fix test that wasn't running at all.Emilio Tagua2010-09-281-1/+1
|
* Redefine duplicated test name.Emilio Tagua2010-09-281-1/+1
|
* Use helper method here.Emilio Tagua2010-09-281-6/+5
|
* Silence warnings here, only setting Encoding.default_external for testing.Emilio Tagua2010-09-281-2/+3
|
* Silence warnings here, only setting Encoding.default_external for testing.Emilio Tagua2010-09-281-2/+3
|
* Add parenthesis to avoid syntax warnings.Emilio Tagua2010-09-282-2/+2
|
* Remove duplicated method.Emilio Tagua2010-09-281-2/+0
|
* Initialize @_virtual_path path ivar.Emilio Tagua2010-09-281-0/+1
|
* Rename tests to avoid name collisions and warnings when running rake task.Emilio Tagua2010-09-281-5/+5
|
* Rename duplicated test, and give it a correct name. Remove nonsense line.Emilio Tagua2010-09-281-2/+1
|
* Remove duplicated test.Emilio Tagua2010-09-281-20/+0
|
* Remove more warnings shadowing outer local variable.Emilio Tagua2010-09-271-1/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Remove more warnings shadowing outer local variable.Emilio Tagua2010-09-271-1/+1
|
* Use parentheses when using assert_match followed by a regexp to avoid warnings.Emilio Tagua2010-09-275-16/+16
|
* Remove last tests with deprecated form_for and cleanup form_for helperCarlos Antonio da Silva2010-09-261-63/+49
| | | | | | | This cleans up the last bits of deprecation stuff from form_for helper. However there is still a bug when using :as => foo[], with index. The classes and ids are being generated using [], such as foo[]_edit. This bug already existed but it was not detected before.
* Select tags with array options are deprecated, removingCarlos Antonio da Silva2010-09-261-6/+0
|
* Review most of the form_for deprecated tests, missing tests with index like []Carlos Antonio da Silva2010-09-261-405/+321
|
* Remove duplicate helper methodKrekoten' Marjan2010-09-251-3/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* These tests shouldn't depend on local time to pass or fail, we can use utc here.Emilio Tagua2010-09-242-2/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* file_field propagates up multipart property even inside of fields_forSantiago Pastorino2010-09-201-0/+21
|
* application.js should be the last file on javascript_include_tag(:all)Santiago Pastorino2010-09-191-8/+8
|
* argument error is done for usAaron Patterson2010-09-181-0/+6
|
* file_field makes the enclosing form multipartSantiago Pastorino2010-09-181-0/+18
|
* Allow view helper's #initialize method to be called. [#5061 state:resolved]Carl Lerche2010-09-131-0/+13
|
* Start cleanup of deprecations in ActionViewCarlos Antonio da Silva2010-09-061-8/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Merge remote branch 'drogus/remove_deprecated_routes'José Valim2010-09-054-7/+6
|\ | | | | | | This merge removes the deprecated routes mapper from Rails and update its tests.
| * Removed deprecated RouteSet API, still many tests failPiotr Sarnacki2010-09-054-7/+6
| |
* | Make number_to_human and number_with_precision work with negativesSantiago Pastorino2010-09-051-0/+2
| |
* | Fix indentation errorsSantiago Pastorino2010-09-051-47/+47
| |
* | Fix number_to_human(0) exception [#5532 state:resolved]Ben Sharpe2010-09-051-0/+1
|/ | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Remove namespace for isolated namespaced models in formsPiotr Sarnacki2010-09-031-0/+17
|
* Added ability to set asset_path for enginesPiotr Sarnacki2010-09-031-0/+23
|
* Extended url_for to handle specifying which router should be used.Piotr Sarnacki2010-09-032-51/+41
| | | | | | | A few examples: url_for Blog::Engine, :posts_path url_for Blog::Engine, @post url_for Blog::Engine, :action => "main", :controller => "index"
* Removing unnecessary code from render_testThiago Pradi2010-09-021-2/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Removing unnecessary codeThiago Pradi2010-09-021-7/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Added :format option for form_for helper and spec for this [#5226 ↵Alex Chrome2010-09-011-2/+18
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove NonConcattingString.José Valim2010-08-291-2/+0
|