aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
Commit message (Collapse)AuthorAgeFilesLines
* Move tests from action_view_test.rb to template_finder_test.rb so that they ↵Pratik Naik2008-03-131-1/+33
| | | | | | get run by default take task. [Pratik] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9021 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActionView::Helpers::register_javascript/stylesheet_expansion to make ↵David Heinemeier Hansson2008-03-131-0/+26
| | | | | | 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
* Moved template handlers related code from ActionView::Base to ↵Pratik Naik2008-03-052-3/+3
| | | | | | 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-0/+59
| | | | 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-032-12/+74
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8976 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow html_options to be passed to all the date helpers. Closes #6000 ↵Michael Koziarski2008-03-021-3/+194
| | | | | | [h-lame, Jakob S] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8968 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix regexp to contain only one rjs, and add rhtml [lifofifo]Michael Koziarski2008-03-011-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8959 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make date_helper use tag and content_tag. Move to assert_dom_equal instead ↵Michael Koziarski2008-02-201-101/+101
| | | | | | 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
* Tests for distance_of_time_in_words with TimeWithZone instances. Closes ↵Geoff Buesing2008-02-161-45/+65
| | | | | | #10914 [ernesto.jimenez] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8883 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure that :confirm doesn't need extra quotes when using ↵Michael Koziarski2008-02-161-1/+3
| | | | | | drop_receiving_element. Closes #8299 [thechrisoshow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8879 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce a Template class to ActionView. Closes #11024 [lifofifo]Michael Koziarski2008-02-061-24/+28
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8805 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce the :index option for form_for and fields_for to simplify ↵Jeremy Kemper2008-02-021-2/+76
| | | | | | 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-0/+1
| | | | | | [libc, developingchris] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8774 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't repeatedly add relative_url_root to asset sources. Closes #10767 ↵Michael Koziarski2008-01-271-0/+4
| | | | | | [tomtoday, Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8740 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Handle corner case with image_tag when passed 'messed up' image names. ↵Michael Koziarski2008-01-251-0/+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-221-49/+39
| | | | | | 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-211-0/+43
| | | | | | 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-191-43/+0
| | | | 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-191-0/+43
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow users to declare other namespaces when using the atom feed helpers. ↵Michael Koziarski2008-01-131-0/+28
| | | | | | Closes #10304 [david.calavera] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8637 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed ActionView::Helpers::ActiveRecordHelper::form for when ↵David Heinemeier Hansson2008-01-111-0/+22
| | | | | | 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-111-108/+109
| | | | | | | | * 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
* Ruby 1.9 compat: account for hash orderingJeremy Kemper2008-01-071-4/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8588 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The asset_host block takes the controller request as an optional second ↵Jeremy Kemper2008-01-061-1/+40
| | | | | | argument. Example: use a single asset host for SSL requests. Closes #10549. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8578 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* require abstract_unit directly since test is in load pathJeremy Kemper2008-01-0516-46/+18
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8564 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix atom_feed_helper to comply with the atom spec. Closes #10672 [xaviershay]Rick Olson2008-01-021-2/+52
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8529 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix failing date helper test. Closes #10664 [Wesley Moxam]Jeremy Kemper2008-01-021-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8526 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix that auto_link looks for ='s in url paths (Amazon urls have them). ↵Rick Olson2007-12-281-0/+1
| | | | | | Closes #10640 [bgreenlee] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8506 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add :default option to time_zone_select. Closes #10590.Jeremy Kemper2007-12-211-0/+28
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8473 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rails 1.9 compat: asset tag helper testsJeremy Kemper2007-12-211-12/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8470 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: compiled templates testJeremy Kemper2007-12-211-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8468 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: note failing form options helper test, probably in html-scannerJeremy Kemper2007-12-211-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8465 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: text helperJeremy Kemper2007-12-212-15/+32
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8464 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: ENV.delete rather than assigning nilJeremy Kemper2007-12-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8452 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add tests for html_escape, and remove an unneeded backslash (closes #10511) ↵David Heinemeier Hansson2007-12-161-0/+56
| | | | | | [fxn] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8422 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added option to pass proc to ActionController::Base.asset_host for maximum ↵David Heinemeier Hansson2007-12-161-3/+36
| | | | | | configurability (closes #10521) [chuyeow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8421 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More Action View refactoring. Knock :erb default down a notch. Closes #10455.Jeremy Kemper2007-12-101-12/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8374 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: File.exists\? -> File.exist\? en masse. References #1689 ↵Jeremy Kemper2007-12-101-9/+9
| | | | | | [Pratik Naik] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8365 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove Great Britain from the Country select helper to ensure consistency ↵Michael Koziarski2007-12-051-3/+0
| | | | | | with iso 3166's long_names. Closes #6872 [Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8277 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add 'disabled' attribute to <OPTION> separators used in time zone and ↵Rick Olson2007-12-041-6/+6
| | | | | | country selects. Closes #10354 [hasmanyjosh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8267 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't escape forward slashes with String#to_json, our unicode encoding of < ↵Michael Koziarski2007-12-022-14/+14
| | | | | | and > prevent the XSS problems. [tpope] Closes #10273 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8255 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deal with nested fields_for too [DHH]David Heinemeier Hansson2007-12-021-0/+22
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8253 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the same record identification guessing rules to fields_for as ↵David Heinemeier Hansson2007-12-021-0/+17
| | | | | | form_for has [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8252 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor sanitizer helpers into HTML classes and make it easy to swap them ↵Rick Olson2007-11-261-187/+2
| | | | | | out with custom implementations. Closes #10129. [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :mouseover short-cut to AssetTagHelper#image_tag for doing easy image ↵David Heinemeier Hansson2007-11-071-1/+4
| | | | | | swaps (closes #6893) [joost] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8110 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Change JSON to encode %w(< > &) as 4 digit hex codes to be in compliance ↵Rick Olson2007-10-292-13/+13
| | | | | | with the JSON spec. Closes #9975 [josh, chuyeow, tpope] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8050 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Tested FormHelper#label. Closes #9850 [jarkko]Jeremy Kemper2007-10-271-1/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8045 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update tests for ActiveSupport's JSON escaping change. [rick]Rick Olson2007-10-263-14/+17
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8034 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* FormHelper's auto_index should use #to_param instead of ↵Rick Olson2007-10-261-1/+2
| | | | | | #id_before_type_cast. Closes #9994 [mattly] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8033 5ecf4fe2-1ee6-0310-87b1-e25e094e27de