aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
Commit message (Collapse)AuthorAgeFilesLines
* Allow assert_tag(:conditions) to match the empty string when a tag has no ↵Jamis Buck2005-11-212-2/+8
| | | | | | children. Closes #2959. [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3154 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update html-scanner to handle CDATA sections better. Closes #2970. [Jamis Buck]Jamis Buck2005-11-212-0/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3153 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't put flash in session if sessions are disabled.Jeremy Kemper2005-11-211-7/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3151 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Back out of 3109 for now as it seems to interfere with the flashDavid Heinemeier Hansson2005-11-211-6/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3150 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Strip out trailing &_= for raw post bodies #2868Sam Stephenson2005-11-211-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3137 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix grammar error in [3115]. References #2966.Jeremy Kemper2005-11-211-2/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3117 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improve expire_fragment documentation. Closes #2966.Jeremy Kemper2005-11-211-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3115 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct docs for automatic layout assignment. Closes #2610.Marcel Molina2005-11-201-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3111 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3209@asus: jeremy | 2005-11-20 01:04:22 -0800Jeremy Kemper2005-11-201-2/+6
| | | | | | | If sessions are disabled, return a hash that raises an error when it's accessed. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3109 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make data writer private. Marshal/unmarshal handle nil.Jeremy Kemper2005-11-201-8/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3108 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Log ActiveRecordStore debugging.Jeremy Kemper2005-11-201-0/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3107 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document request.env and request.host. Strip trailing whitespace.Jeremy Kemper2005-11-201-15/+18
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3103 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3173@asus: jeremy | 2005-11-18 23:34:41 -0800Jeremy Kemper2005-11-201-9/+4
| | | | | | | | | | | | | | | | | | | | | 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
* Make rjs templates always implicitly skip out on layouts.Marcel Molina2005-11-182-8/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3084 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove the unused, slow response_dump and session_dump variables from error ↵Jeremy Kemper2005-11-161-2/+0
| | | | | | pages. References #1222. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3060 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fewer objects, no loop in convert_content_type. Closes #2883.Jeremy Kemper2005-11-161-5/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3058 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MemCache store may be given multiple addresses. Closes #2869.Jeremy Kemper2005-11-161-34/+36
| | | | 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-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3039 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* * Updated docs for in_place_editor, fixes a couple bugs and offers extended ↵Tobias Lütke2005-11-141-1/+1
| | | | | | support for external controls [Justin Palmer] closes #2870 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3032 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update documentation for render :file. References #2858.Jeremy Kemper2005-11-141-8/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3015 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Note that the ruby-memcache bindings are required to use the memcache store.Jeremy Kemper2005-11-141-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3013 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* This does not need to be thread local (thanks skaes).Scott Barron2005-11-101-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2970 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include all of session creation in stale_session_checkJeremy Kemper2005-11-091-6/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2958 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* assert_tag uses exact matches for string conditions, instead of partial ↵Jamis Buck2005-11-091-1/+1
| | | | | | matches. Use regex to do partial matches. #2799 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2952 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Delete existing sessions with the same session id before creating a new ↵Jeremy Kemper2005-11-091-27/+42
| | | | | | session. Prevents duplication and hijacking. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2946 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* CGI::Session::ActiveRecordStore.data_column_name = 'foobar' to use a ↵Jeremy Kemper2005-11-092-41/+56
| | | | | | 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-081-1/+12
| | | | | | 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
* Fix docs (closes #2725)David Heinemeier Hansson2005-11-071-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2906 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix conflict with assert_tag and Glue gem (closes #2255) ↵David Heinemeier Hansson2005-11-071-2/+2
| | | | | | [david.felstead@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2905 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add documentation to assert_tag indicating that it only works with ↵Jamis Buck2005-11-061-0/+6
| | | | | | well-formed XHTML git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2894 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update paginator docs. Closes #2744.Jeremy Kemper2005-11-051-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2878 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix assert_no_tagDavid Heinemeier Hansson2005-11-041-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2876 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added skip_before_filter/skip_after_filter for easier control of the filter ↵David Heinemeier Hansson2005-11-042-1/+49
| | | | | | 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/+6
| | | | | | redirect_to(request.env["HTTP_REFERER"]) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2848 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* ensure close_session in AC::Base#processJeremy Kemper2005-11-021-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2842 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix problem where redirecting components can cause an Scott Barron2005-10-301-0/+1
| | | | | | | | | infinite loop [Rick Olson] Closes #2654 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2829 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed erroneous arg-size check in AC::Base.fragment_cache_store=. Closes ↵Jeremy Kemper2005-10-291-1/+1
| | | | | | #2650. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2820 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix that render :text didn't interpolate instance variables (Closes #2629, ↵David Heinemeier Hansson2005-10-281-0/+1
| | | | | | #2626) [skaes] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2777 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix line number detection and escape RAILS_ROOT in backtrace RegexpNicholas Seckar2005-10-271-3/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2773 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Recognize ./#{RAILS_ROOT} as RAILS_ROOT in error tracesNicholas Seckar2005-10-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2769 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove fingerprinting from AR session store; fix bug in store. Closes #2612Nicholas Seckar2005-10-261-29/+18
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2754 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Proper CSS color definition (closes #2334)David Heinemeier Hansson2005-10-261-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2751 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed docs (closes #2468)David Heinemeier Hansson2005-10-2610-36/+36
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2749 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/+4
| | | | | | 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-251-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2723 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Take a different approach to keeping flash around when using components.Scott Barron2005-10-252-3/+11
| | | | | | | | | | | | | One that, you know, doesn't involve consuming every byte of free memory on the system. Closes #2589. References #2291. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2722 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Expose the session model backing CGI::SessionJeremy Kemper2005-10-202-2/+17
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2696 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Abbreviate RAILS_ROOT in tracesJamis Buck2005-10-191-0/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2688 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update error trace templatesNicholas Seckar2005-10-181-15/+18
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2677 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix the html-scanner to count children correctly, playing nicely with :only, ↵Jamis Buck2005-10-181-1/+5
| | | | | | fixes #2181 [patrick@lenz.sh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2670 5ecf4fe2-1ee6-0310-87b1-e25e094e27de