aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
Commit message (Collapse)AuthorAgeFilesLines
* Added include_seconds option as the third parameter to ↵David Heinemeier Hansson2005-03-261-1/+1
| | | | | | distance_of_time_in_words which will render "less than a minute" in higher resolution ("less than 10 seconds" etc) #944 [thomas@fesch.at] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1010 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added fourth option to process in test cases to specify the content of the ↵David Heinemeier Hansson2005-03-261-1/+2
| | | | | | flash #949 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1009 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Verifications that allows you to specify preconditions to actions in ↵David Heinemeier Hansson2005-03-261-0/+79
| | | | | | form of statements like <tt>verify :only => :update_post, :params => "admin_privileges", :redirect_to => { :action => "settings" }</tt>, which ensure that the update_post action is only called if admin_privileges is available as a parameter -- otherwise the user is redirected to settings. #897 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1008 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added trailing_slash option to url_for, so you can generate urls ending in a ↵David Heinemeier Hansson2005-03-262-1/+4
| | | | | | slash. Note that is currently not recommended unless you need it for special reasons since it breaks caching #937 [stian@grytoyr.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1001 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added documentation on models in sessions #929 [c.r.mcgrath@gmail.com]David Heinemeier Hansson2005-03-261-0/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1000 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed old UrlWriter methods that are no longer in use after Routes #942David Heinemeier Hansson2005-03-261-45/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@999 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added expire_matched_fragments(regular_expression) to clear out a lot of ↵David Heinemeier Hansson2005-03-261-2/+33
| | | | | | fragment caches at once #927 [technoweenie@gmail.com] Fixed the problems with : and ? in file names for fragment caches on Windows #927 [technoweenie@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@996 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that MissingSourceFile's wasn't properly detected in production mode ↵David Heinemeier Hansson2005-03-252-9/+1
| | | | | | #925 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@990 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Tweaked the rescue with breakpoint, still not perfectDavid Heinemeier Hansson2005-03-232-11/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@986 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved error reporting especially around never shallowing exceptions. ↵David Heinemeier Hansson2005-03-234-16/+20
| | | | | | Debugging helpers should be much easier now #980 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@984 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed documentation and prepared for 0.11.0 releaseDavid Heinemeier Hansson2005-03-221-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@976 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Tweaked the documentationDavid Heinemeier Hansson2005-03-211-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@967 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Routes: *path items should use arrays #883David Heinemeier Hansson2005-03-211-3/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@954 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added pagination support through both a controller and helper add-on #817 ↵David Heinemeier Hansson2005-03-201-0/+378
| | | | | | [Sam Stephenson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@949 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce to_param to assert_redirected_to #880David Heinemeier Hansson2005-03-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@948 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Routes: Convert results of #to_param to strings #879David Heinemeier Hansson2005-03-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@947 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed .htaccess to allow dispatch.* to be called from a sub-directory as ↵David Heinemeier Hansson2005-03-202-5/+17
| | | | | | part of the push with Action Pack to make Rails work on non-vhost setups #826 [Nicholas Seckar/Tobias Luetke] Fixed routing and helpers to make Rails work on non-vhost setups #826 [Nicholas Seckar/Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@945 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added a much improved Flash module that allows for finer-grained control on ↵David Heinemeier Hansson2005-03-202-31/+127
| | | | | | expiration and allows you to flash the current action #839 [Caio Chassot] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@942 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added to_param call for parameters when composing an url using url_for from ↵David Heinemeier Hansson2005-03-202-3/+8
| | | | | | something else than strings #812 [Sam Stephenson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@935 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added path collection syntax for Routes that will gobble up the rest of the ↵David Heinemeier Hansson2005-03-201-3/+24
| | | | | | url and pass it on to the controller #830 [rayners] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@927 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added a bit more to the session documentation on how to clear sessionsDavid Heinemeier Hansson2005-03-201-2/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@922 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove superfluous begin/end in caching.rb methods #836David Heinemeier Hansson2005-03-141-16/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@908 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed the reliance on PATH_INFO as it was causing problems for caching and ↵David Heinemeier Hansson2005-03-141-5/+1
| | | | | | inhibited the new non-vhost support #822 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@901 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Params for components should treat string and symbol keys indifferentlyDavid Heinemeier Hansson2005-03-111-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@887 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added assigns shortcut for @response.template.assigns to controller test ↵David Heinemeier Hansson2005-03-101-1/+5
| | | | | | cases [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@881 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added render_partial/render_partial_collection from controllers for easier ↵David Heinemeier Hansson2005-03-091-0/+10
| | | | | | Ajaxing git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@880 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that the routes.rb file wouldn't be found on symlinked setups due to ↵David Heinemeier Hansson2005-03-061-1/+1
| | | | | | File.expand_path #793 [piotr@t-p-l.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@870 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed issues with caching root pages #734 [Nicholas Seckar]David Heinemeier Hansson2005-03-061-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@867 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed ActiveRecordStore to use Marshal instead of YAML as the latter ↵David Heinemeier Hansson2005-03-061-10/+23
| | | | | | proved troublesome in persisting circular dependencies. Updating existing applications MUST clear their existing session table from data to start using this updated store #739 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@866 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added shortcut :id assignment to render_component and friends (before you ↵David Heinemeier Hansson2005-03-061-3/+3
| | | | | | had to go through :params) #784 [Lucas Carlson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@862 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that map.connect should convert arguments to strings #780 [Nicholas ↵David Heinemeier Hansson2005-03-061-1/+1
| | | | | | Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@855 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed rails_generator to be usable without RubyGems #686 [Cristi BALAN]. ↵David Heinemeier Hansson2005-03-061-3/+0
| | | | | | Moved all active support dependencies into active support git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@838 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that broken pipe errors (clients disconnecting in mid-request) could ↵David Heinemeier Hansson2005-03-031-7/+12
| | | | | | bring down a fcgi process git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@829 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the original exception message to session recall errors (so you can ↵David Heinemeier Hansson2005-03-031-1/+1
| | | | | | see which class wasnt required) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@828 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that RAILS_ROOT might not be defined when AP was loaded, so do a late ↵David Heinemeier Hansson2005-03-021-3/+2
| | | | | | initialization of the ROUTE_FILE #761 [Scott Barron] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@822 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made path work for lighttpd again as it uses an empty string where Apache ↵David Heinemeier Hansson2005-03-011-1/+1
| | | | | | returns nil git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@820 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix request.path_info and clear up LoadingModule behavior #754 [Nicholas Seckar]David Heinemeier Hansson2005-03-011-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@817 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed caching to be aware of extensions (so you can cache files like ↵David Heinemeier Hansson2005-03-011-1/+3
| | | | | | api.wsdl or logo.png) #734 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@816 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that Routes would raise NameErrors if a controller component contains ↵David Heinemeier Hansson2005-02-271-0/+1
| | | | | | characters that are not valid constant names #733 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@803 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added PATH_INFO access from the request that allows urls like the following ↵David Heinemeier Hansson2005-02-271-1/+5
| | | | | | to be interpreted by rails: http://www.example.com/dispatcher.cgi/controller/action -- that makes it possible to use rails as a CGI under lighttpd and would also allow (for example) Rublog to be ported to rails without breaking existing links to Rublog-powered blogs. #728 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@802 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that caching the root would result in .html not index.htmlDavid Heinemeier Hansson2005-02-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@801 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* With const_missing loading, its no longer necessary to dynamically require ↵David Heinemeier Hansson2005-02-241-2/+0
| | | | | | the scaffold model -- meaning the end of RDoc warnings! git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@794 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that proxy IPs do not follow all RFC1918 nets #251 [caleb@aei-tech.com]David Heinemeier Hansson2005-02-241-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@789 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix empty url_for with nested modules #707David Heinemeier Hansson2005-02-241-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@782 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed some docingDavid Heinemeier Hansson2005-02-241-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@781 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated documentationDavid Heinemeier Hansson2005-02-245-33/+55
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@780 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed unused methods in url_rewriting.rb #701David Heinemeier Hansson2005-02-241-36/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@777 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Base#render_component_as_stringDavid Heinemeier Hansson2005-02-231-9/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@769 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Base#render_to_string to parse a template and get the result back as a ↵David Heinemeier Hansson2005-02-231-4/+8
| | | | | | string #479 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that send_file/data can work even if render* has been called before in ↵David Heinemeier Hansson2005-02-231-39/+64
| | | | | | action processing to render the content of a file to be send for example #601 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@763 5ecf4fe2-1ee6-0310-87b1-e25e094e27de