aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
Commit message (Collapse)AuthorAgeFilesLines
* Added include_seconds option as the third parameter to ↵David Heinemeier Hansson2005-03-262-0/+34
| | | | | | 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-0/+25
| | | | | | 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/+137
| | | | | | 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 JavascriptHelper#escape_javascript as a public method (was private) ↵David Heinemeier Hansson2005-03-261-0/+9
| | | | | | and made it escape both single and double quotes and new lines #940 [mortonda@dgrmm.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1002 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed old UrlWriter methods that are no longer in use after Routes #942David Heinemeier Hansson2005-03-262-488/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@999 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Routes: *path items should use arrays #883David Heinemeier Hansson2005-03-211-2/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@954 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Routes: Convert results of #to_param to strings #879David Heinemeier Hansson2005-03-201-0/+7
| | | | 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-203-25/+118
| | | | | | 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-7/+31
| | | | | | 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
* Fixed form helpers to query Model#id_before_type_cast instead of Model#id as ↵David Heinemeier Hansson2005-03-201-0/+1
| | | | | | a temporary workaround for Ruby 1.8.2 warnings #818 [DeLynn B] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@934 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added TextHelper#simple_format as a non-dependency text presentation ↵David Heinemeier Hansson2005-03-201-0/+6
| | | | | | helper.Fixed TextHelper#markdown to use blank? instead of empty? so it can deal with nil strings passed #814 [Johan Sorensen] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@933 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that the html options disabled, readonly, and multiple can all be ↵David Heinemeier Hansson2005-03-201-0/+6
| | | | | | treated as booleans. So specifying <tt>disabled => :true</tt> will give <tt>disabled="disabled"</tt>. #809 [mindel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@932 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added path collection syntax for Routes that will gobble up the rest of the ↵David Heinemeier Hansson2005-03-201-0/+9
| | | | | | 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 more FormTagHelper test cases #860 [Eric Hodel]David Heinemeier Hansson2005-03-201-16/+78
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@925 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed options_for_select on selected line issue #624 [Florian Weber]David Heinemeier Hansson2005-03-151-0/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@911 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed the reliance on PATH_INFO as it was causing problems for caching and ↵David Heinemeier Hansson2005-03-141-11/+0
| | | | | | 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
* Moved image_tag to AssetTagHelperDavid Heinemeier Hansson2005-03-143-4/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@899 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added TagHelper#image_tag and deprecated UrlHelper#link_image_to ↵David Heinemeier Hansson2005-03-092-14/+20
| | | | | | (recommended approach is to combine image_tag and link_to instead) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@879 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that map.connect should convert arguments to strings #780 [Nicholas ↵David Heinemeier Hansson2005-03-061-0/+13
| | | | | | Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@855 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added UrlHelper#link_to_if/link_to_unless to enable other conditions that ↵David Heinemeier Hansson2005-03-061-0/+22
| | | | | | just link_to_unless_current #757 [mindel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@852 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use example.com domains to make rails RFC2606 compliant #708David Heinemeier Hansson2005-03-062-23/+23
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@840 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that single quote was not escaped in a UrlHelper#link_to javascript ↵David Heinemeier Hansson2005-03-061-0/+4
| | | | | | confirm #549 [Scott Barron] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@837 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed the default border on link_image_to (it broke xhtml strict) -- can ↵David Heinemeier Hansson2005-03-061-8/+8
| | | | | | be specified with :border => 0 #517 [?/caleb] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@836 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that form helpers would treat string and symbol keys differently in ↵David Heinemeier Hansson2005-03-067-58/+80
| | | | | | html_options (and possibly create duplicate entries) #112 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@833 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix request.path_info and clear up LoadingModule behavior #754 [Nicholas Seckar]David Heinemeier Hansson2005-03-011-0/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@817 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that Routes would raise NameErrors if a controller component contains ↵David Heinemeier Hansson2005-02-271-0/+11
| | | | | | 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/+7
| | | | | | 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 testsDavid Heinemeier Hansson2005-02-242-65/+65
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@786 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix empty url_for with nested modules #707David Heinemeier Hansson2005-02-241-0/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@782 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added some unit tests #706David Heinemeier Hansson2005-02-231-0/+36
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@775 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed testsDavid Heinemeier Hansson2005-02-232-3/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@767 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-232-31/+34
| | | | | | string #479 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added FormOptionsHelper#time_zone_select and ↵David Heinemeier Hansson2005-02-231-0/+158
| | | | | | FormOptionsHelper#time_zone_options_for_select to work with the new value object TimeZone in Active Record #688 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@759 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed some testsDavid Heinemeier Hansson2005-02-232-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@757 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Never end generated paths with a '/' #683David Heinemeier Hansson2005-02-201-8/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@717 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed internal callingDavid Heinemeier Hansson2005-02-201-0/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@707 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Tests and tweaks for componentsDavid Heinemeier Hansson2005-02-191-0/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@706 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Unit tests for rendering componentsDavid Heinemeier Hansson2005-02-191-0/+48
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@705 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed a few testsDavid Heinemeier Hansson2005-02-192-1/+48
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@703 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActionView::Base.register_template_handler for easy integration of an ↵David Heinemeier Hansson2005-02-191-0/+33
| | | | | | alternative template language to ERb and Builder. See test/controller/custom_handler_test.rb for a usage example #656 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@694 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added AssetTagHelper that provides methods for linking a HTML page together ↵David Heinemeier Hansson2005-02-192-1/+46
| | | | | | with other assets, such as javascripts, stylesheets, and feeds. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@689 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Completed FormTagHelper by adding radio_button_tag and select_tagDavid Heinemeier Hansson2005-02-191-0/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@688 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added FormTagHelper that provides a number of methods for creating form tags ↵David Heinemeier Hansson2005-02-191-0/+19
| | | | | | that doesn't rely on conventions with an object assigned to the template like FormHelper does. With the FormTagHelper, you provide the names and values yourself. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@687 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated tests for TextHelper#auto_linkDavid Heinemeier Hansson2005-02-191-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@685 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Clear route defaults using :name => nil #663David Heinemeier Hansson2005-02-181-1/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@671 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added URL escaping for routing #664David Heinemeier Hansson2005-02-181-0/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@670 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that assert_template_xpath_matches did not indicate when a path was ↵David Heinemeier Hansson2005-02-182-1/+9
| | | | | | not found #658 [Eric Hodel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@665 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added TextHelper#auto_link, TextHelper#auto_link_urls, and ↵David Heinemeier Hansson2005-02-181-0/+6
| | | | | | TextHelper#auto_link_email_addresses to turn those elements into ahrefs git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@661 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Skip Active Record tests in Action Pack if the SQLite database cant be ↵David Heinemeier Hansson2005-02-172-101/+110
| | | | | | brought up git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More tests for Routing related stuffDavid Heinemeier Hansson2005-02-171-0/+72
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@647 5ecf4fe2-1ee6-0310-87b1-e25e094e27de