Commit Graph

201 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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