aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/capture_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add content_for?(:name) helper to check if content_for(:name) is present ↵Darragh Curran2009-06-211-0/+22
| | | | | | [#1311 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Extract the layout proc into a method, and write documentation explaining ↵Yehuda Katz + Carl Lerche2009-06-171-4/+0
| | | | what the proc does in various cases.
* Drive the final stake through @content_for_*'s heart!Yehuda Katz + Carl Lerche2009-06-171-3/+2
|
* Ruby 1.9: flushing the output buffer preserves its encodingJeremy Kemper2009-05-281-3/+10
|
* Introduce flush_output_buffer to append the buffer to the response body then ↵Jeremy Kemper2009-03-131-0/+8
| | | | start a new buffer. Useful for pushing custom parts to the response body without disrupting template rendering.
* JavaScriptGenerator should only sets output_buffer for the duration of the ↵Jeremy Kemper2008-07-151-8/+9
| | | | update block
* WhitespaceMichael Koziarski2008-07-111-2/+1
|
* Check whether blocks are called from erb using a special __in_erb_template ↵Jeremy Kemper2008-06-191-2/+6
| | | | variable visible in block binding.
* with_output_buffer returns the temporary buffer instead of the result of the ↵Jeremy Kemper2008-06-081-0/+1
| | | | block
* Use output_buffer reader and writer methods exclusively instead of hitting ↵Jeremy Kemper2008-06-081-3/+3
| | | | the instance variable so others can override the methods.
* Remove some internal dead code that supported content_forJeremy Kemper2008-06-061-15/+5
|
* Work with @output_buffer instead of _erboutJeremy Kemper2008-06-021-5/+13
|
* Try replacing _erbout with @output_bufferJeremy Kemper2008-06-021-42/+14
|
* Update doc (closes #11402)David Heinemeier Hansson2008-03-281-2/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9116 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed spelling errors (closes #9706) [tarmo/rmm5t]David Heinemeier Hansson2007-09-281-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Stop rdoc from whiningDavid Heinemeier Hansson2007-09-241-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7622 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed CaptureHelper#content_for to work with the optional content parameter ↵David Heinemeier Hansson2007-09-211-3/+9
| | | | | | instead of just the block #9434 [sandofsky/wildchild] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Its just ERb nowDavid Heinemeier Hansson2007-07-241-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7211 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improve capture helper documentation. Closes #8796.Jeremy Kemper2007-06-281-25/+41
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7148 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Massive documentation update for all helpers (closes #8223, #8177, #8175, ↵David Heinemeier Hansson2007-06-231-53/+65
| | | | | | #8108, #7977, #7972, #7971, #7969) [jeremymcanally] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added .erb and .builder as preferred aliases to the now deprecated .rhtml ↵David Heinemeier Hansson2007-02-201-4/+4
| | | | | | and .rxml extensions [Chad Fowler]. This is done to separate the renderer from the mime type. .erb templates are often used to render emails, atom, csv, whatever. So labeling them .rhtml doesn't make too much sense. The same goes for .rxml, which can be used to build everything from HTML to Atom to whatever. .rhtml and .rxml will continue to work until Rails 3.0, though. So this is a slow phasing out. All generators and examples will start using the new aliases, though. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6178 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* ActionView::Base.erb_variable accessor names the buffer variable used to ↵Jeremy Kemper2006-11-171-4/+4
| | | | | | render templates. Defaults to _erbout; use _buf for erubis. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5544 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that setting RAILS_ASSET_ID to "" should not add a trailing slash ↵David Heinemeier Hansson2006-10-221-1/+1
| | | | | | after assets (closes #6454) [BobSilva/chrismear] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5335 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix documentation indentationMarcel Molina2006-04-261-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4275 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update layout and content_for documentation to use yield rather than magic ↵Marcel Molina2006-04-251-15/+17
| | | | | | @content_for instance variables. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4262 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added .rxml (and any non-rhtml template, really) supportfor ↵David Heinemeier Hansson2006-02-261-12/+49
| | | | | | CaptureHelper#content_for and CaptureHelper#capture #3287 [Brian Takita] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Simplify content_for implementationDavid Heinemeier Hansson2005-07-241-10/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1914 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed regression for content_for #1820 [Stefan Kaes]David Heinemeier Hansson2005-07-241-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1911 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added option to pass in parameters to CaptureHelper#capture, so you can ↵David Heinemeier Hansson2005-06-211-5/+7
| | | | | | create more advanced view helper methods #1466 [duane.johnson@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1459 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added CaptureHelper with CaptureHelper#capture and ↵David Heinemeier Hansson2005-03-141-0/+95
CaptureHelper#content_for. See documentation in helper #837 [Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@907 5ecf4fe2-1ee6-0310-87b1-e25e094e27de