aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
Commit message (Collapse)AuthorAgeFilesLines
* Docfix (closes #11226) [mikong]David Heinemeier Hansson2008-03-151-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9034 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Docfix (closes #11263) [Irfy]David Heinemeier Hansson2008-03-151-21/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9031 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that TextHelper#excerpt would include one character too many (closes ↵David Heinemeier Hansson2008-03-151-9/+9
| | | | | | #11268) [Irfy] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9030 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Docfix (closes #11281) [jlindley]David Heinemeier Hansson2008-03-151-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9029 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Handle template error gracefully when line number cannot be derived. Closes ↵Pratik Naik2008-03-151-2/+3
| | | | | | #11327 [Nex3] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9027 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove unused to_date_tag. Closes #11237 [danger]Jeremy Kemper2008-03-131-10/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9024 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActionView::Helpers::register_javascript/stylesheet_expansion to make ↵David Heinemeier Hansson2008-03-131-21/+57
| | | | | | it easier for plugin developers to inject multiple assets (closes #10350) [lotswholetime] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9016 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Documentation for the drop_receiving_element helpers :onDrop callback. ↵Pratik Naik2008-03-051-3/+31
| | | | | | Closes #11158 [thechrisoshow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8983 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved template handlers related code from ActionView::Base to ↵Pratik Naik2008-03-054-41/+41
| | | | | | ActionView::Template git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8981 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* 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
* Refactor partial rendering into a PartialTemplate class. [Pratik]Michael Koziarski2008-03-036-122/+109
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8976 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix syntax errors in the documentation for image submit tag. Closes #11073 ↵Michael Koziarski2008-03-021-3/+3
| | | | | | [wharris] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8970 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow html_options to be passed to all the date helpers. Closes #6000 ↵Michael Koziarski2008-03-022-45/+58
| | | | | | [h-lame, Jakob S] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8968 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that requests with JavaScript as the priority mime type in the accept ↵David Heinemeier Hansson2008-02-291-2/+21
| | | | | | header and no format extension in the parameters will be treated as though their format was :js when it comes to determining which template to render. This makes it possible for JS requests to automatically render action.js.rjs files without an explicit respond_to block [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8956 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make date_helper use tag and content_tag. Move to assert_dom_equal instead ↵Michael Koziarski2008-02-201-18/+26
| | | | | | of assert_equal to avoid being dependent on hash ordering. Closes #11131 [ernesto.jimenez] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8911 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Check the host string contains %d before using String#%, this avoids ↵Michael Koziarski2008-02-181-1/+1
| | | | | | warnings. Closes #10809 [chuyeow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8893 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure that :confirm doesn't need extra quotes when using ↵Michael Koziarski2008-02-161-0/+3
| | | | | | drop_receiving_element. Closes #8299 [thechrisoshow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8879 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix problem with render :partial collections, records, and locals. #11057 ↵Marcel Molina2008-02-081-2/+2
| | | | | | [lotswholetime] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8822 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix typo in form_helper documentation. Closes #10650 [xaviershay, kampers]Rick Olson2008-02-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8812 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add a slightly more informative exception message for ↵Rick Olson2008-02-071-1/+6
| | | | | | ActionView::TemplateFinder::InvalidViewPath [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8809 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce a Template class to ActionView. Closes #11024 [lifofifo]Michael Koziarski2008-02-065-82/+104
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8805 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cache partial variable names to reduce garbageJeremy Kemper2008-02-031-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8793 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix missing extension for caching. Closes #10733 [Catfish, tcoppock, mpalmer]Jeremy Kemper2008-02-032-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8791 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce the :index option for form_for and fields_for to simplify ↵Jeremy Kemper2008-02-021-6/+15
| | | | | | multi-model forms (see http://railscasts.com/episodes/75). Closes #9883. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8786 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix number_to_human_size incorrectly removing trailing zeros. Closes #10099 ↵Jeremy Kemper2008-02-021-1/+1
| | | | | | [libc, developingchris] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8774 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move the declaration of the compilation related cattr_accessors to ↵Michael Koziarski2008-01-302-11/+12
| | | | | | compilable. Closes #10959 [lifofifo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8756 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct line numbers from template errors. Closes #10937 [Aleksey Kondratenko]Michael Koziarski2008-01-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Precalculate the Backtrace of a template error to avoid raising exceptions ↵Michael Koziarski2008-01-271-4/+11
| | | | | | in TemplateError#backtrace. These will abort the ruby vm. Closes #10936 [Aleksey Kondratenko] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8743 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't repeatedly add relative_url_root to asset sources. Closes #10767 ↵Michael Koziarski2008-01-271-5/+11
| | | | | | [tomtoday, Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8740 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use File.join to construct partial path. Closes #10932 [patrick.t.joyce]Michael Koziarski2008-01-271-3/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8739 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Handle corner case with image_tag when passed 'messed up' image names. ↵Michael Koziarski2008-01-251-1/+1
| | | | | | Closes #9018 [duncanbeevers, mpalmer] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8717 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor template compilation from AV::Base into the template handlers. ↵Michael Koziarski2008-01-226-121/+144
| | | | | | Closes #10888 [lifofifo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8689 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add label_tag helper for generating elements. Closes #10802 [DefV]Michael Koziarski2008-01-211-0/+18
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8685 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Reapply the TemplateFinder first applied in [8669] then reverted in [8676]. ↵Michael Koziarski2008-01-213-130/+185
| | | | | | Closes #10800 [lifofifo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8683 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Revert r8669 for now, breaks Action Mailer. Reopens #10800.Jeremy Kemper2008-01-193-178/+130
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8676 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce TemplateFinder to handle view paths and lookups. Closes #10800.Jeremy Kemper2008-01-193-130/+178
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make render :partial recognise form builders and use the _form partial. ↵Michael Koziarski2008-01-162-0/+18
| | | | | | Closes #10814 [djanowski] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8646 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct docs on caching and all.jsMichael Koziarski2008-01-141-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8641 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow users to declare other namespaces when using the atom feed helpers. ↵Michael Koziarski2008-01-131-2/+28
| | | | | | Closes #10304 [david.calavera] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8637 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix a few caching errors, expose a case thats still not working (ref #107330 ↵David Heinemeier Hansson2008-01-121-2/+2
| | | | | | [catfish] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8630 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed ActionView::Helpers::ActiveRecordHelper::form for when ↵David Heinemeier Hansson2008-01-111-3/+10
| | | | | | protect_from_forgery is used (closes #10739) [jeremyevans] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8626 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* * Pass around handler instances, not their classes [Koz]Michael Koziarski2008-01-115-18/+30
| | | | | | | | * Move compilation, rendering and 'compilable?' checks into the Handlers [Koz] * Remove delegate_* methods as the handler is now an instance [Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move fragment caching from special helper methods to TemplateHandler. Closes ↵Jeremy Kemper2008-01-105-17/+29
| | | | | | #10754 [Josh Peek] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8619 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix CacheHelper#cache (closes #10733) [mindforge]David Heinemeier Hansson2008-01-101-8/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8614 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't append the forgery token to an ajax request if it's serializing a ↵Michael Koziarski2008-01-081-2/+2
| | | | | | form, prevents duplicate tokens. Closes #10684 [macournoyer] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8598 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Replace labelled_form_for example with one that will actually work. ↵Michael Koziarski2008-01-081-2/+3
| | | | | | References #10738 [justinfrench, Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8597 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Doc fixes for #atom_feed_helper. Closes #10715 [hasmanyjosh]Rick Olson2008-01-071-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8593 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use explicit toplevel namespace for constant reference in AS::BasicObjectJeremy Kemper2008-01-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8586 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: truncate and excerpt helpersJeremy Kemper2008-01-071-52/+84
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8584 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: remove stray colonJeremy Kemper2008-01-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8582 5ecf4fe2-1ee6-0310-87b1-e25e094e27de