Commit Graph

376 Commits

Author SHA1 Message Date
David Heinemeier Hansson
654370d9ad Fixed that RAILS_ROOT might not be defined when AP was loaded, so do a late initialization of the ROUTE_FILE #761 [Scott Barron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@822 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-02 00:03:11 +00:00
David Heinemeier Hansson
caf8976ce7 Made path work for lighttpd again as it uses an empty string where Apache returns nil
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@820 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-01 17:26:52 +00:00
David Heinemeier Hansson
28a11969ce Fix request.path_info and clear up LoadingModule behavior #754 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@817 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-01 02:04:54 +00:00
David Heinemeier Hansson
a29625fc80 Fixed caching to be aware of extensions (so you can cache files like api.wsdl or logo.png) #734 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@816 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-01 01:44:50 +00:00
David Heinemeier Hansson
630638b00e Fixed that Routes would raise NameErrors if a controller component contains 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
2005-02-27 17:12:35 +00:00
David Heinemeier Hansson
8cddbf0d37 Added PATH_INFO access from the request that allows urls like the following 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
2005-02-27 17:11:05 +00:00
David Heinemeier Hansson
6ef19fcd48 Fixed that caching the root would result in .html not index.html
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@801 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-27 17:02:09 +00:00
David Heinemeier Hansson
10faf204b7 Tagged the 0.10.0 release
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@799 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-25 22:07:50 +00:00
David Heinemeier Hansson
99fca6330d Marked for release
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@796 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-24 13:16:41 +00:00
David Heinemeier Hansson
d9168fd206 Made ready for 0.10.0 release
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@795 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-24 13:06:17 +00:00
David Heinemeier Hansson
2a947f185a With const_missing loading, its no longer necessary to dynamically require 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
2005-02-24 12:54:30 +00:00
David Heinemeier Hansson
9bf3b25ab7 Noted things that wasnt mentioned
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@790 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-24 12:12:52 +00:00
David Heinemeier Hansson
11404e17e3 Fixed that proxy IPs do not follow all RFC1918 nets #251 [caleb@aei-tech.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@789 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-24 12:03:17 +00:00
David Heinemeier Hansson
02df588cf7 Fixed tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@786 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-24 11:50:59 +00:00
David Heinemeier Hansson
b3bfe13e6c Updated the license (still referered to the old ruby one)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@785 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-24 02:07:02 +00:00
David Heinemeier Hansson
b7889524bf Fix empty url_for with nested modules #707
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@782 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-24 01:38:10 +00:00
David Heinemeier Hansson
74d5f6ec0c Fixed some docing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@781 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-24 01:37:12 +00:00
David Heinemeier Hansson
e4efcfd43e Updated documentation
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@780 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-24 01:29:43 +00:00
David Heinemeier Hansson
f7cdd26b34 Removed unused methods in url_rewriting.rb #701
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@777 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-24 00:04:48 +00:00
David Heinemeier Hansson
65d3430baf Fixed TimeZone issues in action-pack and active-support #704
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@776 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-23 23:55:59 +00:00
David Heinemeier Hansson
11a2bb91f5 Added some unit tests #706
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@775 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-23 23:53:55 +00:00
David Heinemeier Hansson
ab8642c9da Added Base#render_component_as_string
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@769 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-23 15:26:48 +00:00
David Heinemeier Hansson
f9fca1eb63 Moved TimeZone to Active Support
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@768 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-23 15:13:03 +00:00
David Heinemeier Hansson
fd6abf0a59 Fixed tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@767 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-23 15:05:04 +00:00
David Heinemeier Hansson
41ea6963a3 Added Base#render_to_string to parse a template and get the result back as a string #479
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-23 14:57:08 +00:00
David Heinemeier Hansson
5c4f185997 Fixed that send_file/data can work even if render* has been called before in 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
2005-02-23 14:05:00 +00:00
David Heinemeier Hansson
2bf29b3485 Added FormOptionsHelper#time_zone_select and 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
2005-02-23 12:54:58 +00:00
David Heinemeier Hansson
69f18a7a81 Keep the singular style, like before_filter, etc
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@758 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-23 12:53:08 +00:00
David Heinemeier Hansson
cd689cf22b Fixed some tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@757 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-23 12:52:38 +00:00
David Heinemeier Hansson
d768ff1146 Documentation fix #698
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@756 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-23 12:31:05 +00:00
David Heinemeier Hansson
a4a8c5e7bf Show value when NOT file
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@752 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-23 02:26:23 +00:00
David Heinemeier Hansson
df7f3455a1 Added FormHelper#file_field and FormTagHelper#file_field_tag for creating file upload fields
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@750 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-23 00:50:34 +00:00
David Heinemeier Hansson
94b5e57bcc More component fun
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-22 17:11:34 +00:00
David Heinemeier Hansson
6cea13a30f More component fun
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-22 17:10:00 +00:00
David Heinemeier Hansson
8838020ac4 Fixed component method names
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@747 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-22 16:58:45 +00:00
David Heinemeier Hansson
e2724aa185 Made the sharing of request and response safer
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-22 14:14:42 +00:00
David Heinemeier Hansson
51bb090d86 Added fine-grained assertions for Routing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@742 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-22 14:07:26 +00:00
David Heinemeier Hansson
675fd47e83 Redirects to root should be / not ""
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@730 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-21 02:04:01 +00:00
David Heinemeier Hansson
1677404893 Fixed more caching and routing love
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@728 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-21 01:09:15 +00:00
David Heinemeier Hansson
48a44b77c1 Fixed caching for root and Routing for getting back the current url
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@727 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-21 01:01:24 +00:00
David Heinemeier Hansson
9ee1302f86 Remove debugging statement
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@725 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-20 23:36:41 +00:00
David Heinemeier Hansson
656fe3ccb6 All the memory-based stores should use a mutex #611 [inspire22]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@724 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-20 23:08:07 +00:00
David Heinemeier Hansson
1402bb7a25 Upgraded to breakpoint 92
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@721 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-20 22:28:11 +00:00
David Heinemeier Hansson
f153f42469 Never end generated paths with a '/' #683
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@717 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-20 20:54:40 +00:00
David Heinemeier Hansson
e4f07888ce Made caching work for WEBrick and lighttpd by appending .html for all URLs not already containing a dot
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@715 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-20 17:18:59 +00:00
David Heinemeier Hansson
12a7573630 Added new keyword to specify load paths as being component based. Added better logging for component calls
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@713 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-20 13:50:13 +00:00
David Heinemeier Hansson
98349f37a3 Gives Rescues some Love #680
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@709 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-20 10:51:10 +00:00
David Heinemeier Hansson
acb3d2cf75 Fixed internal calling
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@707 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-20 00:02:02 +00:00
David Heinemeier Hansson
cf6d77600a Tests and tweaks for components
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@706 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 23:51:59 +00:00
David Heinemeier Hansson
0011116592 Unit tests for rendering components
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@705 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 23:49:12 +00:00
David Heinemeier Hansson
cae0f46eda Fixed a few tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@703 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 23:21:08 +00:00
David Heinemeier Hansson
c4a3de5013 Fixed the scaffolding/routing issue for real
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@702 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 23:09:28 +00:00
David Heinemeier Hansson
7d3d83e7b4 Use full status for render_component from within a controller
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@698 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 20:33:15 +00:00
David Heinemeier Hansson
86b86b2647 Added preliminary version of render_component
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@697 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 20:29:55 +00:00
David Heinemeier Hansson
0de0d207e8 Added Afghanistan (no more conspiracy!) to FormOptions#country_select and FormOptions#country_options_for_select
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@696 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 20:15:57 +00:00
David Heinemeier Hansson
9b5ece87d4 Added :order option for date_select that allows control over the order in which the date dropdowns is used and which of them should be used #619 [Tim Bates]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@695 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 18:26:37 +00:00
David Heinemeier Hansson
9a5d6d6388 Added ActionView::Base.register_template_handler for easy integration of an 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
2005-02-19 17:22:37 +00:00
David Heinemeier Hansson
9be37c9b20 Fixed scaffolding and routes conflict #669
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@693 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 17:10:04 +00:00
David Heinemeier Hansson
c56816e102 One comma too much
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@690 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 16:23:04 +00:00
David Heinemeier Hansson
2a5fc27cea Added AssetTagHelper that provides methods for linking a HTML page together 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
2005-02-19 16:04:50 +00:00
David Heinemeier Hansson
ad1fe7dd27 Completed FormTagHelper by adding radio_button_tag and select_tag
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@688 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 13:09:09 +00:00
David Heinemeier Hansson
967339e4d3 Added FormTagHelper that provides a number of methods for creating form tags 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
2005-02-19 12:49:14 +00:00
David Heinemeier Hansson
b6854c648b Added Iran and Irak to the countries list used by FormOptions#country_select and FormOptions#country_options_for_select
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@686 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 12:22:13 +00:00
David Heinemeier Hansson
5eac7ad1d9 Updated tests for TextHelper#auto_link
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@685 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 12:19:20 +00:00
David Heinemeier Hansson
0369ec79a9 Made auto_link the only public method of its clan and added an option to control what to be linked instead
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@684 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 12:15:38 +00:00
David Heinemeier Hansson
677005c349 Added Iran and Irak to the countries list used by country_select and country_options_for_select
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@683 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 12:10:19 +00:00
David Heinemeier Hansson
9bb8c107fa Renamed link_to_image to link_image_to (since thats what it actually does) -- kept alias for the old method name
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@682 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 11:33:32 +00:00
David Heinemeier Hansson
e7499638d0 Use per-document setting for hardbreaks on textile
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@678 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 02:00:06 +00:00
David Heinemeier Hansson
cdd2e844a4 Added defaults and regexp requirements to Routing #666
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@677 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 01:16:09 +00:00
David Heinemeier Hansson
cd896fa138 Renamed action_service to action_web_service
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@674 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 00:02:21 +00:00
David Heinemeier Hansson
6b7c6e088f Fixed textilize for RedCloth3 to keep doing hardbreaks
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@673 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 00:01:36 +00:00
David Heinemeier Hansson
5760a6cb3e Clear route defaults using :name => nil #663
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@671 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-18 23:53:18 +00:00
David Heinemeier Hansson
519fe7ccbc Added URL escaping for routing #664
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@670 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-18 23:52:28 +00:00
David Heinemeier Hansson
37249f6a86 Fixed that assert_template_xpath_matches did not indicate when a path was not found #658 [Eric Hodel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@665 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-18 17:13:57 +00:00
David Heinemeier Hansson
b305756d9f Added TextHelper#auto_link, TextHelper#auto_link_urls, and 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
2005-02-18 14:06:36 +00:00
David Heinemeier Hansson
e39bf10594 Loading the Routes should happen in the environments #655
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-17 23:03:48 +00:00
David Heinemeier Hansson
96d3f15222 Documentation on :include_blank #579
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@654 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-17 19:38:02 +00:00
David Heinemeier Hansson
bc574a86ac Skip Active Record tests in Action Pack if the SQLite database cant be brought up
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-17 19:28:13 +00:00
David Heinemeier Hansson
ea3faf3df9 Only load ROUTE_FILE if one has been declared
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@651 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-17 19:20:44 +00:00
David Heinemeier Hansson
8151c4e84d Fixed that on validation errors, scaffold couldn't find template #654 [mindel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@649 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-17 19:07:02 +00:00
David Heinemeier Hansson
0aad5abcc8 AR, AP, and AM should look for AS in sibling directory before trying RubyGems #648
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@648 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-17 19:04:47 +00:00
David Heinemeier Hansson
02e382a765 More tests for Routing related stuff
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@647 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-17 19:00:21 +00:00
David Heinemeier Hansson
04b8bc1bdd Fixed that a bunch of methods from ActionController::Base was accessible as actions (callable through a URL) when they shouldn't have been #644 [Nicholas Seckar]. Base#hide_actions(*names) to hide public methods from a controller that would otherwise have been callable through the URL. For the majority of cases, its preferred just to make the methods you don't want to expose protected or private (so they'll automatically be hidden) -- but if you must have a public method, this is a way to make it uncallable. Base#hidden_actions retrieve the list of all hidden actions for the controller #644 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@646 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-17 18:59:51 +00:00
David Heinemeier Hansson
761b18a564 Added current_page?(options) method to check if the url_for options passed corresponds to the current page
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@645 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-17 15:34:32 +00:00
David Heinemeier Hansson
3e4064e9f2 Simplified link_to_unless_current to work with the new Routing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@644 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-17 12:25:52 +00:00
David Heinemeier Hansson
5199aea4aa Better fix for requireing a missing route file in unit tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-17 02:14:32 +00:00
David Heinemeier Hansson
6a48e89ae7 Fix that routes werent being loaded in production environment
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@642 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-17 02:04:37 +00:00
David Heinemeier Hansson
ead404ccd0 Forget defaults :action if :controller changed at all
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@641 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-17 01:55:59 +00:00
David Heinemeier Hansson
29066036f2 Make Routes drop the default for action when the controller changes #651
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@640 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-17 01:46:29 +00:00
David Heinemeier Hansson
c00bf5f0c6 Fixed the verbosity of using the AR store
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@639 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-17 01:23:41 +00:00
David Heinemeier Hansson
2d9e59b2b6 Enable diagnostics screen again
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@638 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-16 16:39:14 +00:00
David Heinemeier Hansson
07dcbd97b9 Fixed https handling on other ports than 443 [Alan Gano]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@637 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-16 12:08:00 +00:00
David Heinemeier Hansson
5dabc92cf9 Call Active Support 0.9 until release
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@629 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-15 16:43:13 +00:00
David Heinemeier Hansson
dcfd6aa3bd Move Controllers wrapper module away from environment.rb and into dependencies.rb
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@627 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-15 16:21:56 +00:00
David Heinemeier Hansson
ca175ed7c9 All libraries should link against the independent active support
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@625 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-15 16:15:02 +00:00
David Heinemeier Hansson
dc3d6eb9b4 Moved Active Support into its own gem
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-15 15:57:44 +00:00
David Heinemeier Hansson
b1999be5a7 A hopefully more successful attempt at the Routing branch merge
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@617 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-15 01:45:35 +00:00
David Heinemeier Hansson
88a3343ed5 Backed out of routing merge.. investigating missing patches
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-15 01:24:55 +00:00
David Heinemeier Hansson
60f7a5cab7 Added routing itself.. wonder why that didnt make it through the merge
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@615 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-15 01:02:37 +00:00
David Heinemeier Hansson
c844755e5a Merged back the Routing branch
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@614 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-15 00:51:02 +00:00
David Heinemeier Hansson
65f834ad45 Stringify the parameters on follow_redirect
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@587 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-12 21:54:34 +00:00
David Heinemeier Hansson
61a6a440cb Added follow_redirect method for functional tests that'll get-request the redirect that was made.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@585 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-12 19:35:30 +00:00
David Heinemeier Hansson
2c110b825e Added IndifferentAccess as a way to wrap a hash by a symbol-based store that also can be accessed by string keys
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@581 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-11 13:05:38 +00:00
David Heinemeier Hansson
e505a45173 Fixed whitespace
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@580 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-11 13:04:10 +00:00
David Heinemeier Hansson
66b504b1f7 Fixed double requiring of models with the same name as the controller
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@579 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-11 13:03:34 +00:00
David Heinemeier Hansson
02d0558738 Make the store less verbose when saving the session data
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@529 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-07 19:12:11 +00:00
David Heinemeier Hansson
b8e4c78abb Fixed that query params could be forced to nil on a POST due to the raw post fix #562 [moriq@moriq.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@526 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-07 14:23:19 +00:00
David Heinemeier Hansson
098fa94356 Fixed documentation snafus #575, #576, #577, #585
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-07 14:15:53 +00:00
David Heinemeier Hansson
c89c2bcbfb Fixed that cookies shouldn't be frozen in TestRequest #571 [Eric Hodel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@520 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-07 13:44:48 +00:00
David Heinemeier Hansson
838c5a3d82 Minor refactoring to prettify
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@517 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-06 18:29:11 +00:00
David Heinemeier Hansson
ac8ebc19be Prepared for 0.9.5 release
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@515 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-25 20:10:24 +00:00
David Heinemeier Hansson
c328f64e37 Catch ArgumentError not NameError
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@514 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-25 20:05:17 +00:00
David Heinemeier Hansson
11611c1b00 Raise LoadErrors separately
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@510 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-25 18:35:16 +00:00
David Heinemeier Hansson
20b14e0d38 Comply to the new dependency reload system
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@508 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-25 18:05:22 +00:00
David Heinemeier Hansson
136962322b Fixed the ordering of attributes in the xml-decleration of Builder #540 [woeye]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@505 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-25 12:47:11 +00:00
David Heinemeier Hansson
2f11b7cfee Added @request.raw_post as a convenience access to @request.env['RAW_POST_DATA'] and fixed the patch problems with the session #534 [Tobias Luetke]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@502 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-25 11:15:26 +00:00
David Heinemeier Hansson
b69d337527 Applied the dblack patch
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@499 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-24 15:35:30 +00:00
David Heinemeier Hansson
b953ca8561 Added support for automatic id-based indexing for lists of items #532 [dblack]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@495 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-24 13:55:57 +00:00
David Heinemeier Hansson
80b656637a Added :application_prefix to url_for and friends that makes it easier to setup Rails in non-vhost environments #516 [Jamis Buck]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@494 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-24 13:50:58 +00:00
David Heinemeier Hansson
45db66de56 Added :encode option to mail_to that'll allow you to masquarede the email address behind javascript or hex encoding #494 [Lucas Carlson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@493 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-24 13:48:24 +00:00
David Heinemeier Hansson
0725498d6f Fixed install.rb files
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@487 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-24 12:05:00 +00:00
David Heinemeier Hansson
f31291ab5a Another swing at reloading
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@479 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-24 00:26:44 +00:00
David Heinemeier Hansson
d336ca5280 Fixed that the content-header was being set to application/octet_stream instead of application/octet-stream on send_date/file [Alexey]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@475 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-22 14:48:59 +00:00
David Heinemeier Hansson
bbd3e39668 Fixed no-binding fragment caching
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@473 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-20 17:54:06 +00:00
David Heinemeier Hansson
7306675fe2 Removed the need for passing the binding when using CacheHelper#cache
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@472 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-20 17:26:14 +00:00
David Heinemeier Hansson
79d7e66f78 Deactivated RAW_POST_DATA pending fix
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@469 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-20 15:10:50 +00:00
David Heinemeier Hansson
dfed3d309e A few missing files
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@468 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-20 14:55:13 +00:00
David Heinemeier Hansson
93f7cb2a80 Added TestResponse#binary_content that'll return as a string the data sent through send_data/send_file for testing #500 [Alexey]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@467 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-20 14:43:59 +00:00
David Heinemeier Hansson
1a5bf720b2 Added @request.env['RAW_POST_DATA'] for people who need access to the data before Ruby's CGI has parsed it #505 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@463 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-20 14:31:48 +00:00
David Heinemeier Hansson
2ee84cc6f9 Fixed that all redirect and render calls now return true, so you can use the pattern of "do and return". Added that renders and redirects called in before_filters will have the same effect as returning false: stopping the chain. Added that only one render or redirect can happen per action. The first call wins and subsequent calls are ignored.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@462 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-20 14:13:34 +00:00
David Heinemeier Hansson
91ff8352a4 Fixed that a default fragment store wan't being set to MemoryStore as intended
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@461 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-20 14:12:53 +00:00
David Heinemeier Hansson
a5364fb3ac Made ready for release of 0.9.4.1
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@458 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-18 14:13:12 +00:00
David Heinemeier Hansson
cd3f14cf38 Fixed a bug where cookies wouldn't be set if a symbol was used instead of a string as the key
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 23:38:14 +00:00
David Heinemeier Hansson
6ca5eba396 Added assert_cookie_equal to assert the contents of a named cookie
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@452 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 23:24:47 +00:00
David Heinemeier Hansson
ecfe77f38d CHANGELOGs..
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@448 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 17:31:15 +00:00
David Heinemeier Hansson
4ec7a4b5b7 Fixed bug in page caching that prevented it from working at all
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@447 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 17:30:40 +00:00
David Heinemeier Hansson
ddcc400293 Made ready for release of 0.9.4
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@439 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 01:13:15 +00:00
David Heinemeier Hansson
9577f0f57c Fixed up some docs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@438 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 01:05:14 +00:00
David Heinemeier Hansson
9a33b9a737 Added more informative error message for "file not found" situation in send_file #484 [Alexey]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@427 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-16 13:06:15 +00:00
David Heinemeier Hansson
bc4156e09e Finished documentation for caching
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@426 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 22:16:41 +00:00
David Heinemeier Hansson
fb13b7a495 Removed the Ruby 1.8.2 test/unit fix as it didnt work anyway
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@423 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 20:55:19 +00:00
David Heinemeier Hansson
c81af992e8 Added the option of passing a block to ActiveRecordHelper#form in order to add more to the auto-generated form #469 [dom@sisna.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@422 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 18:57:17 +00:00
David Heinemeier Hansson
c755b29a86 Fixed page caching problems with saving cached file fails for the index action and that it shouldnt cache files with GET/POST parameters #462
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@407 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 13:22:58 +00:00
David Heinemeier Hansson
9c09f81bc6 Added arrays as a value option for params in url_for and friends #467 [Eric Anderson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@403 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-13 14:06:33 +00:00
David Heinemeier Hansson
1d61071e7c Fixed that controller tests can now assert on the use of cookies #466 [Alexey]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@402 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-13 14:01:17 +00:00
David Heinemeier Hansson
96e54780b3 Fixed that send_file would "remember" all the files sent by adding to the headers again and again #458 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-13 13:29:49 +00:00
David Heinemeier Hansson
d3a8d5f93c Fixed url rewriter confusion when the controller or action name was a substring of the controller_prefix or action_prefix
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@398 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-12 16:23:18 +00:00
David Heinemeier Hansson
cb8a020ec9 Fixed url rewriter confusion when the controller name was a substring of the controller_prefix
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@397 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-12 15:21:09 +00:00
David Heinemeier Hansson
d44deadd39 Added option to turn off caching
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@394 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-11 22:03:27 +00:00
David Heinemeier Hansson
2182a8203f Tweaks and tinkering
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@390 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-11 02:11:24 +00:00