aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/record_tag_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Make content_tag_for work without blockRafael Mendonça França2013-01-021-1/+5
| | | | This is version of #8640 for master
* Hash Syntax to 1.9 related changesAvnerCohen2012-10-291-3/+3
|
* Move ActionController::RecordIdentifier to ActionViewPiotr Sarnacki2012-08-281-3/+1
| | | | | | | Since it's more about DOM classes and ids it belongs to Action View better. What's more, it's more convenient to make it part of Action View to follow the rule that Action Pack can depend on Action View, but not the other way round.
* refactor content_tag_for helperSergey Nartimov2012-04-261-3/+3
| | | | | - do not use merge! just for 2 values - there is no need to check block arity
* Fix errors when running entire suite due to class name collisionCarlos Antonio da Silva2012-01-181-2/+2
| | | | | | | | | The Post class is created everywhere in the test suite, and due to that when applying the Array() logic to refactor content_tag_for, some other change to the Post class was breaking record tag tests. The solution is to rename the class to not collide with others already defined in the test suite.
* Refactor content tag to not detect options Hash alwaysCarlos Antonio da Silva2012-01-181-7/+6
| | | | | Only check for options and prefix arguments order once when running content_tag_for with a collection.
* Do not mutate options hashCarlos Antonio da Silva2012-01-181-2/+2
|
* Remove capture.Tim Cooper2012-01-181-1/+1
|
* Always treat the object passed to content_tag_for as an array.Tim Cooper2012-01-181-7/+3
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2011-09-081-2/+2
|\
| * Fix grammar for content_tag_for and div_for docs.Hendy Tanata2011-09-051-2/+2
| |
* | Make sure that result from content_tag_for with collection is html_safePrem Sichanugrist2011-09-051-1/+1
|/ | | Thank you @spastorino for catching the empty test in b84cee0, as I totally forgot that I still have to make it html_safe.
* Make `content_tag_for` and `div_for` accepts the array of recordsPrem Sichanugrist2011-09-041-5/+51
| | | | | | | | | | | | | | | 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 HTML escaping from Record Tag Helper docs.Semyon Perepelitsa2011-04-221-3/+3
|
* Speed up content_tag_for by simplifying needed logicwycats2010-08-311-3/+3
|
* No need to delegate. Simply include the whole RecordIdentifier module.José Valim2010-07-211-0/+4
|
* Added titles and description.Rizwan Reza2010-06-161-0/+1
|
* Updated documentation for block helpers in record_tag_helper.rbJeroen van Dijk2010-03-121-4/+4
|
* API change: content_tag_for outputs prefixed class nameJoshua Peek2009-10-081-3/+3
|
* Ensure that calling content_tag_for in a helper doesn't cause duplicate output.Tom Lea2008-08-291-3/+3
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#871 state:committed]
* Don't pass block binding to concatJeremy Kemper2008-06-021-3/+2
|
* Merge docrails.Pratik Naik2008-05-251-2/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Tests for div_for and content_tag_for helpers. Closes #11223 [thechrisoshow]Pratik Naik2008-03-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8980 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Standardize on using hyphens rather than colons to separate option names ↵Marcel Molina2007-11-061-1/+1
| | | | | | from their explanation in documentation. Replace + with tt tags. Closes #8732. [ryanb] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added record identifications to FormHelper#form_for and ↵David Heinemeier Hansson2007-05-141-52/+56
| | | | | | PrototypeHelper#remote_form_for [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6731 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the first part of Simply Helpful to core. The rest is pending a clean ↵David Heinemeier Hansson2007-04-301-0/+55
integartion of polymorphic urls [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6633 5ecf4fe2-1ee6-0310-87b1-e25e094e27de