aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
Commit message (Collapse)AuthorAgeFilesLines
* Fixed that SSL would not correctly be detected when running lighttpd/fcgi ↵David Heinemeier Hansson2006-01-231-0/+12
| | | | | | behind lighttpd w/mod_proxy (closes #3548) [stephen_purcell@yahoo.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3467 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Raise a RedirectBackError if redirect_to :back is called when theres no ↵David Heinemeier Hansson2006-01-222-2/+11
| | | | | | HTTP_REFERER defined (closes #3049) [kevin.clark@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3459 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add render :update for inline RJSSam Stephenson2006-01-201-0/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3441 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* make error_messages_for return "" for nil objectsMichael Koziarski2006-01-191-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3438 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor human_size to exclude decimal place if it is zero.Marcel Molina2006-01-191-13/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3437 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Automatically discover layouts when a controller is namespaced. Closes ↵Marcel Molina2006-01-152-0/+14
| | | | | | #2199, #3424. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3423 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add support for multiple proxy servers in HTTP_X_FORWARDED_HOST. Closes #3397Michael Koziarski2006-01-131-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3412 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix broken autocompleter test.Michael Koziarski2006-01-131-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3410 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix for failing auto complete unit testMichael Koziarski2006-01-131-5/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3409 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix failing test due to hard coded yearMichael Koziarski2006-01-131-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove Upload Progress. Closes #2871.Marcel Molina2006-01-133-590/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3406 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add test for min_chars auto_complete_field fix. Closes #2929.Marcel Molina2006-01-131-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3405 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow auto-discovery of third party template library layouts.Marcel Molina2006-01-125-0/+65
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3397 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added JavaScriptHelper#button_to_function that works just like ↵David Heinemeier Hansson2005-12-311-0/+5
| | | | | | JavaScriptHelper#link_to_function but uses a button instead of a href [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3367 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that JavaScriptHelper#link_to_function will honor existing :onclick ↵David Heinemeier Hansson2005-12-311-1/+1
| | | | | | definitions when adding the function call [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3365 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that JavaScriptHelper#link_to_function will honor existing :onclick ↵David Heinemeier Hansson2005-12-311-0/+4
| | | | | | definitions when adding the function call [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3364 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :disable_with option to FormTagHelper#submit_tag to allow for easily ↵David Heinemeier Hansson2005-12-301-0/+7
| | | | | | disabled submit buttons with different text [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3361 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make auto_link handle nil by returning quickly if blank?Scott Barron2005-12-301-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3359 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Value of full_messages on stubbed out AR instances should be an Array.Marcel Molina2005-12-261-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3352 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make auto_link match urls with a port number specified.Marcel Molina2005-12-261-0/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3351 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for toggling visual effects to ↵Thomas Fuchs2005-12-251-0/+10
| | | | | | ScriptaculousHelper::visual_effect, #3323. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :select option for JavaScriptMacroHelper#auto_complete_field that ↵David Heinemeier Hansson2005-12-241-0/+9
| | | | | | makes it easier to only use part of the auto-complete suggestion as the value for insertion [Thomas Fuchs] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3344 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added delayed execution of Javascript from within RJS (closes #3264) ↵David Heinemeier Hansson2005-12-221-0/+8
| | | | | | [devslashnull@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3335 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't try to strip out the controller name if default_action_name is nilMarcel Molina2005-12-202-0/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3321 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add additional RJS functionality: alert, redirect_to, call, assign, and <<Sam Stephenson2005-12-201-0/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3319 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't include a layout when rendering an rjs template using render's ↵Marcel Molina2005-12-171-1/+4
| | | | | | :template option. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3316 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* 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