aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/record_tag_helper_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2872 from sikachu/content_tag_html_safeSantiago Pastorino2011-09-051-0/+12
|\ | | | | Make sure that result from content_tag_for with collection is html_safe
| * Make sure that result from content_tag_for with collection is html_safePrem Sichanugrist2011-09-051-0/+12
| | | | | | Thank you @spastorino for catching the empty test in b84cee0, as I totally forgot that I still have to make it html_safe.
* | add blanks between methodsVijay Dev2011-09-051-0/+3
|/
* Remove empty testSantiago Pastorino2011-09-051-3/+0
|
* Tests shouldn't produce warningsRay Baxter2011-09-041-0/+5
|
* Make `content_tag_for` and `div_for` accepts the array of recordsPrem Sichanugrist2011-09-041-2/+22
| | | | | | | | | | | | | | | So instead of having to do this: @items.each do |item| content_tag_for(:li, item) do Title: <%= item.title %> end end You can now do this: content_tag_for(:li, @items) do |item| Title: <%= item.title %> end
* remove warning: assigned but unused variableSantiago Pastorino2011-06-081-2/+0
|
* Require persisted? in ActiveModel::Lint and remove new_record? and ↵José Valim2010-02-211-0/+1
| | | | destroyed? methods. ActionPack does not care if the resource is new or if it was destroyed, it cares only if it's persisted somewhere or not.
* API change: content_tag_for outputs prefixed class nameJoshua Peek2009-10-081-1/+1
|
* Moved shared form helper models into fake_modelsJoshua Peek2009-10-031-0/+1
|
* AMo conversion helperJoshua Peek2009-07-211-1/+2
|
* Update some tests and add a to_model to form helpersYehuda Katz2009-07-201-1/+1
|
* Define ActiveModel API ComplianceYehuda Katz2009-07-201-1/+1
| | | | | | - Define to_model on AR - Define to_model on ActiveModel::APICompliant - Update test fixtures to be API Compliant - Start using to_model in AP
* Move model naming into ActiveModelJoshua Peek2009-06-171-0/+1
|
* Temporarily modifies setup to call super directly. This can support more ↵Yehuda Katz and Carl Lerche2009-04-081-0/+1
| | | | T::U runners.
* Ensure that calling content_tag_for in a helper doesn't cause duplicate output.Tom Lea2008-08-291-0/+8
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#871 state:committed]
* Check whether blocks are called from erb using a special __in_erb_template ↵Jeremy Kemper2008-06-191-13/+14
| | | | variable visible in block binding.
* Use output_buffer reader and writer methods exclusively instead of hitting ↵Jeremy Kemper2008-06-081-7/+2
| | | | the instance variable so others can override the methods.
* Work with @output_buffer instead of _erboutJeremy Kemper2008-06-021-7/+7
|
* Introduce ActionView::TestCase for testing view helpers.Joshua Peek2008-04-191-8/+3
|
* Tests for div_for and content_tag_for helpers. Closes #11223 [thechrisoshow]Pratik Naik2008-03-051-0/+59
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8980 5ecf4fe2-1ee6-0310-87b1-e25e094e27de