aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
Commit message (Collapse)AuthorAgeFilesLines
* removing generation of id in submit helperFranco Brusatti2011-02-031-6/+6
| | | | | | [#6369 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Add a test for 'render :layout'Anton Astashov2011-02-031-0/+5
| | | | | | | | | To make sure it will show block contents if it is placed after 'render :partial' [#5557 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* add test to check class is being escaped in form_classSantiago Pastorino2011-02-011-0/+4
|
* Allow customization of form class for button_toAndrei Bocan2011-02-011-0/+4
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* auto_link: avoid recognizing full width chars as a part of URI schemeAkira Matsuda2011-02-011-1/+7
| | | | | | | | fixes regression by http://github.com/rails/rails/commit/133ada6ab0f0cb7bef2bd40dbc18f2d5bc6b964e [#5503 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Accept String value for render_partial :as optionAkira Matsuda2011-02-011-1/+6
| | | | | | [#6222 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Solve SystemStackError when changing locale inside ActionMailer [#5329 ↵José Valim2011-01-191-1/+1
| | | | state:resolved]
* Merge branch 'template_error' into mergeAaron Patterson2011-01-181-0/+13
|\ | | | | | | | | | | * template_error: Ensure original exception message is present in both Template::Error#message and Template::Error#inspect. ActiveSupport::Deprecation.silence no longer needed.
| * Ensure original exception message is present in both Template::Error#message ↵John Firebaugh2010-10-291-0/+13
| | | | | | | | | | | | and Template::Error#inspect. Previously, #inspect would produce #<ActionView::Template::Error: ActionView::Template::Error>, which is not very useful.
* | fixing space errorsAaron Patterson2011-01-171-1/+1
| |
* | button_tag should escape it contentSantiago Pastorino2011-01-121-0/+7
| |
* | Allow view in AV::TestCase to access it's controller helpers methodsSantiago Pastorino2011-01-121-0/+21
| |
* | Improve select helpers by allowing a selected value of false. This is ↵John Allison2011-01-091-8/+24
| | | | | | | | useful when using a select helper with a boolean attribute, and the attribute is false. (e.g. f.select :allow_comments)
* | HTML5 button_tag helperRizwan Reza2011-01-091-0/+28
| | | | | | | | | | | | | | | | This tag is similar in nature to submit_tag, but allows more control. It also doesn't submit if submit type isn't used, allowing JavaScript to control the flow where required. For more information: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-button-element
* | Don't be so picky on MissingTemplate error details, this fails randomly on ↵Piotr Sarnacki2010-12-311-4/+3
| | | | | | | | 1.8.7 because of not ordered hash
* | added tests for the MissingTemplate exception message.Nick Sutterer2010-12-311-0/+21
| |
* | ActionController::Base.helpers.sanitize ignores case in protocolTimothy N. Tsvetkov2010-12-301-0/+7
| | | | | | | | | | | | [#6044 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | all tests passartemave2010-12-263-29/+29
| |
* | Allow registering javascript/stylesheet_expansions to existing symbolsSantiago Pastorino2010-12-221-0/+19
| |
* | Do not use the same hash instance for expansions [#6114 state:resolved]Piotr Sarnacki2010-12-221-0/+8
| | | | | | | | | | Using the same hash instance makes using the same expansions for both javascripts and stylesheets.
* | Fixed number_with_precision rounding error [#6182 state:resolved]Don Wilson2010-12-181-0/+5
| |
* | Revert "Fixed number_with_precision rounding error [#6182 state:resolved]"Piotr Sarnacki2010-12-171-5/+0
| | | | | | | | This reverts commit 006ec77e60163d57d655479602230672d98e0f10.
* | Fixed number_with_precision rounding error [#6182 state:resolved]Don Wilson2010-12-171-0/+5
| |
* | Properly check the arity for template handlers.José Valim2010-12-091-0/+5
| |
* | Allow back passing :rescue_format => nil and test addedSantiago Pastorino2010-12-041-0/+5
| |
* | Make TranslationHelper#translate use the :rescue_format option in I18n 0.5.0Sven Fuchs2010-12-041-27/+40
| | | | | | | | | | | | Don't catch exceptions here. Instead only declare that we want exceptions to be rescued as :html, but also let users configure reactions to exceptions in I18n. Signed-off-by: José Valim <jose.valim@gmail.com>
* | Allow template handlers to store temp data.José Valim2010-11-241-2/+27
| |
* | Fix AssetIncludeTag ensuring that files are in the wrong directory [#6015 ↵Henning Koch2010-11-191-0/+44
| | | | | | | | | | | | state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Revert "Remove deprecated form_for with strings or symbols"José Valim2010-11-183-5/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code was not deprecated. What was deprecated is the following: form_for(:foo, @foo) Which now should be rewritten as: form_for(@foo, :as => :foo) The following format is valid: form_for(:foo) This reverts commit be797750e6ce866ea08307f63bf35304a965c8d4.
* | Remove deprecated form_for with strings or symbolsLeonardo Capillera2010-11-183-35/+5
| | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Pass the view object as parameter to the handler. Useful if you need to ↵José Valim2010-11-171-0/+9
| | | | | | | | access the lookup context or other information when compiling the template.
* | incorporated most of the feedback from JoséJosh Kalderimis2010-11-161-2/+2
| |
* | removed an assert from a test as it was testing a private methodJosh Kalderimis2010-11-161-1/+0
| |
* | Tests added for rendering partial with layout, when the partial contains ↵Santiago Pastorino2010-11-131-0/+15
| | | | | | | | another render layout with block call
* | provide better error message if path is uri [#5914 state:resolved]Neeraj Singh2010-11-111-0/+11
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* | fields_for should treat ActiveRecord::Relation as an arrayNeeraj Singh2010-11-111-0/+21
| | | | | | | | | | | | [#5795 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* | Fix render partial with layout and no blockCarlos Antonio da Silva2010-11-111-0/+10
| | | | | | | | | | | | | | | | When using a render :partial with :layout call, without giving a block, if the given :partial had another render :partial call, the layout was not being rendered. This commit fixes this context by storing variables before rendering the partial, so they are not overrided in any successive call to render partials down the path. All ActionPack tests are ok.
* | Fix issue with rendering partials and then yielding inside a render layout callCarlos Antonio da Silva2010-11-111-0/+20
| | | | | | | | | | | | | | The given block was never being executed when another render :partial call existed before the yield call, due to the block being overriden. This commit also adds some more tests to render with :layout option.
* | patching to ensure separator is printed with order [#5816 state:resolved]Aditya Sanghi2010-11-111-0/+41
| | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Added :negative_format option to number_to_currency function [#5894 ↵Don Wilson2010-11-022-1/+8
| | | | | | | | | | | | state:resolved] Signed-off-by: Andrew White <andyw@pixeltrix.co.uk>
* | Test that capture doesn't escape twiceSantiago Pastorino2010-11-021-2/+7
| |
* | Make sure capture's output gets html_escaped [#5545 state:resolved]Jeff Kreeftmeijer2010-11-022-6/+6
|/ | | | | | | Also remove a duplicate test_link_to_unless assertion and add .html_safe to the remaining one. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Allow generated url helpers to be overriden [#5243 state:resolved]Andrew White2010-10-261-0/+18
|
* number_to_phone always return safeSantiago Pastorino2010-10-171-1/+2
|
* HTML5 data attribute helpers [#5825 state:resolved].Stephen Celis2010-10-181-0/+7
|
* Fix for ActionView::Template#refresh in rails 3.1.0.betaAndré Camargo2010-10-151-2/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove :cache => true on lookup templates initialization.José Valim2010-10-142-12/+0
|
* render :once should consider the current controller prefix.José Valim2010-10-141-3/+3
|
* Fix test helpers to ensure get method forms are properly tested [#5753 ↵Aditya Sanghi2010-10-122-9/+16
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* data-disable-with in button_to helperPaco Guzman2010-10-111-0/+21
| | | | | | [#4993 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>