aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
Commit message (Collapse)AuthorAgeFilesLines
* More robust relative url root discovery for SCGI compatibility. This solves ↵Jeremy Kemper2005-12-081-0/+5
| | | | | | the 'SCGI routes problem' -- you no longer need to prefix all your routes with the name of the SCGI mountpoint. References #3070. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Silence deprecation warnings for keep_flash when running tests.Marcel Molina2005-12-021-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3203 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Change form_for and fields_for method signatures to take object name and ↵Marcel Molina2005-12-023-10/+10
| | | | | | object as separate arguments rather than as a Hash. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3201 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce :selected option to the select helper. Allows you to specify a ↵Jeremy Kemper2005-11-231-0/+18
| | | | | | selection other than the current value of object.method. Specify :selected => nil to leave all options unselected. Closes #2991. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3174 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make ActionController's render honor the :locals option when rendering a ↵Sam Stephenson2005-11-223-0/+33
| | | | | | :file. Closes #1665. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Pass multiple arguments to Element.show and Element.hide in ↵Sam Stephenson2005-11-211-4/+4
| | | | | | JavaScriptGenerator instead of using iterators git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3116 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3173@asus: jeremy | 2005-11-18 23:34:41 -0800Jeremy Kemper2005-11-201-3/+9
| | | | | | | | | | | | | | | | | | | | | Ticket 2731 - sessions r3185@asus: jeremy | 2005-11-19 18:02:51 -0800 eliminate const redefinition warning r3186@asus: jeremy | 2005-11-19 19:25:50 -0800 Use :database option instead of :dbfile r3187@asus: jeremy | 2005-11-19 19:34:31 -0800 Data writer assigns to instance var. Since nothing is calling write_attribute on the data column except for marshal_data, simplify data reader to lazy-unmarshal the data column (no worrying whether it's already unmarshaled) r3188@asus: jeremy | 2005-11-19 19:35:40 -0800 Explicitly create the session class so that subsequent requests for the session can find it in the database. This is masking a problem with the controller losing its @session instance var and therefore requesting a new session. r3189@asus: jeremy | 2005-11-19 19:36:40 -0800 Using create unnecessarily broadens the existing duck-typing so use new + save instead. r3194@asus: jeremy | 2005-11-19 20:28:17 -0800 Test creation of another instance while first instance is still active. Should return same session_id. r3195@asus: jeremy | 2005-11-19 20:39:45 -0800 Always create new AR sessions rather than trying too hard to avoid database traffic. References #2731. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3100 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use Element.update('id', 'html') instead of uid=501(sam) gid=501(sam) ↵Sam Stephenson2005-11-181-2/+2
| | | | | | groups=501(sam), 81(appserveradm), 79(appserverusr), 80(admin).innerHTML = 'html' in JavaScriptGenerator#replace_html so that script tags are evaluated git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3086 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make rjs templates always implicitly skip out on layouts.Marcel Molina2005-11-181-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3084 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct length for the truncate text helper. Closes #2913.Jeremy Kemper2005-11-181-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3080 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add support for new rjs templates which wrap an update_page block.Marcel Molina2005-11-172-0/+31
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3078 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include QUOTED_TYPE constant in ActionPack AR assertions tests.Jeremy Kemper2005-11-161-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3059 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MemCache store may be given multiple addresses. Closes #2869.Jeremy Kemper2005-11-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3054 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Handle cookie parsing irregularity for certain Nokia phones. Closes #2530.Jeremy Kemper2005-11-151-0/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3039 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactored JavaScriptHelper into PrototypeHelper and ScriptaculousHelper. ↵Sam Stephenson2005-11-143-155/+269
| | | | | | Added PrototypeHelper::JavaScriptGenerator and PrototypeHelper#update_page for easily modifying multiple elements in an Ajax response. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3036 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added FormHelper#form_for and FormHelper#fields_for that makes it easier to ↵David Heinemeier Hansson2005-11-135-7/+177
| | | | | | work with forms for single objects also if they don't reside in instance variables [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3003 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* options_for_select allows any objects which respond_to? :first and :last ↵Jeremy Kemper2005-11-101-6/+16
| | | | | | rather than restricting to Array and Range. Closes #2824. References [2126]. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2977 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The auto_link text helper accepts an optional block to format the link text ↵Jeremy Kemper2005-11-101-0/+7
| | | | | | for each url and email address. References #2628. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2963 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* CGI::Session::ActiveRecordStore.data_column_name = 'foobar' to use a ↵Jeremy Kemper2005-11-091-3/+3
| | | | | | different session data column than the 'data' default. References #2731. Remove error-prone method_missing passthrough to session model. Cleanup. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2944 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Controllers with acronyms in their names (e.g. PDFController) require the ↵Jeremy Kemper2005-11-082-5/+24
| | | | | | correct default helper (PDFHelper in file pdf_helper.rb). Closes #2262. Do not raise an exception when default helper is missing; log a debug message instead. It's nice to delete empty helpers. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2938 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added skip_before_filter/skip_after_filter for easier control of the filter ↵David Heinemeier Hansson2005-11-041-1/+2
| | | | | | chain in inheritance hierachies [DHH] Added short-hand to assert_tag so assert_tag :tag => "span" can be written as assert_tag "span" [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2873 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added redirect_to :back as a short-hand for ↵David Heinemeier Hansson2005-11-021-0/+10
| | | | | | redirect_to(request.env["HTTP_REFERER"]) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2848 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Change javascript_include_tag :defaults to not use script.aculo.us loader, ↵Thomas Fuchs2005-11-011-2/+19
| | | | | | which facilitates the use of plugins for future script.aculo.us and third party javascript extensions, and provide register_javascript_include_default for plugins to specify additional JavaScript files to load. Removed scriptaculous.js, slider.js and builder.js git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2835 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix problem where redirecting components can cause an Scott Barron2005-10-301-0/+5
| | | | | | | | | infinite loop [Rick Olson] Closes #2654 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2829 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for the queue option on visual_effectThomas Fuchs2005-10-291-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2807 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix that render :text didn't interpolate instance variables (Closes #2629, ↵David Heinemeier Hansson2005-10-282-1/+12
| | | | | | #2626) [skaes] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2777 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added TextHelper#strip_tags for removing HTML tags from a string (using ↵David Heinemeier Hansson2005-10-261-0/+9
| | | | | | HTMLTokenizer) (closes #2229) [marcin@junkheap.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2750 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added a reader for flash.now, so it's possible to do stuff like ↵David Heinemeier Hansson2005-10-261-0/+6
| | | | | | flash.now[:alert] ||= 'New if not set' (closes #2422) [Caio Chassot] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2747 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Reset template variables after using render_to_string. Closes #2559Nicholas Seckar2005-10-252-0/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2723 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Expose the session model backing CGI::SessionJeremy Kemper2005-10-202-7/+17
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2696 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix the html-scanner to count children correctly, playing nicely with :only, ↵Jamis Buck2005-10-181-2/+19
| | | | | | fixes #2181 [patrick@lenz.sh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2670 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make string-keys locals assigns optionalNicholas Seckar2005-10-171-2/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2665 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed more Windows testsDavid Heinemeier Hansson2005-10-161-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2659 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* added assert_valid to APTobias Lütke2005-10-162-3/+52
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2635 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add temporary support for passing locals to render using string keysNicholas Seckar2005-10-161-0/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2630 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Raise an exception if an attempt is made to insert more session data into ↵Marcel Molina2005-10-151-0/+23
| | | | | | the ActiveRecordStore data column than the column can hold. Closes #2234. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2612 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* If a component redirects when called with render_component_as_string, render theScott Barron2005-10-151-2/+26
| | | | | | | | | redirected to action. Fixes #2327 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2604 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix Request#host_with_port to use the standard port when Rails is behind a ↵Nicholas Seckar2005-10-152-4/+25
| | | | | | proxy. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2596 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure radio_button works as expected with values other than strings.Michael Koziarski2005-10-141-0/+6
| | | | | | | | | | Thanks to: * grant.mcinnes@utoronto.ca * rails@jeffcole.net git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2573 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Escape query strings in the href attribute of URLs created by url_helper. #2333Jeremy Kemper2005-10-131-0/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2572 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :locals support for render :inline #2463 [mdabney@cavoksolutions.com]David Heinemeier Hansson2005-10-131-0/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2567 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3575@sedna: jeremy | 2005-10-13 11:22:13 -0700Jeremy Kemper2005-10-131-2/+2
| | | | | | | Eliminate warning for redefined MemCache constant. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2554 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Unset the X-Requested-With header when using the xhr wrapper in functional ↵Sam Stephenson2005-10-131-0/+5
| | | | | | tests. Closes #2352. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2551 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* modified javascript_helper testcase to back up #2097Tobias Lütke2005-10-131-2/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2550 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Wrap javascript_tag contents in a CDATA section and add a cdata_section ↵Sam Stephenson2005-10-124-20/+24
| | | | | | method to TagHelper. Closes #1691. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2543 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make xyz_tag(..., :id => "foo") work againJamis Buck2005-10-121-0/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2535 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Convert boolean form options form the tag_helper. Recloses #809.Marcel Molina2005-10-101-0/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2523 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that an instance variable with the same name as a partial should be ↵Sam Stephenson2005-10-101-0/+10
| | | | | | implicitly passed as the partial :object. Closes #2269. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make assert_tag :children count appropriately. Closes #2181.Marcel Molina2005-10-091-1/+128
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2500 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added new scriptaculous options for auto_complete_field #2343 ↵Thomas Fuchs2005-10-011-0/+4
| | | | | | [m.stienstra@fngtps.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2431 5ecf4fe2-1ee6-0310-87b1-e25e094e27de