Commit Graph

71 Commits

Author SHA1 Message Date
David Heinemeier Hansson
6b42269183 Fixed link_to documentation references nonexistent URL #573
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@863 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 17:35:52 +00:00
David Heinemeier Hansson
fd9967bca2 Added UrlHelper#link_to_if/link_to_unless to enable other conditions that just link_to_unless_current #757 [mindel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@852 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 14:06:33 +00:00
David Heinemeier Hansson
00fe726a76 Updated docs on auto-indexing #765 [Astinus]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@848 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 13:57:16 +00:00
David Heinemeier Hansson
25b656fefa Fixed that single quote was not escaped in a UrlHelper#link_to javascript confirm #549 [Scott Barron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@837 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 12:07:13 +00:00
David Heinemeier Hansson
eb5ca2ea5f Removed the default border on link_image_to (it broke xhtml strict) -- can be specified with :border => 0 #517 [?/caleb]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@836 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 12:02:17 +00:00
David Heinemeier Hansson
dfac1cea3d Fixed that form helpers would treat string and symbol keys differently in 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
2005-03-06 11:50:41 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
efdabfb8f5 Updated to new naming style
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@389 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-11 01:54:55 +00:00
David Heinemeier Hansson
98c16a3320 Added fourth argument to render_collection_of_partials that allows you to specify local_assigns -- just like render_partial #432 [zenspider]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-11 00:27:33 +00:00
David Heinemeier Hansson
2594f2abe9 Added that form helpers now take an index option #448 [Tim Bates]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@378 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-10 23:57:36 +00:00
David Heinemeier Hansson
de5c48c4e3 Updated caching to include action caching as well and simplified the name/key reference to just be name
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@368 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-10 18:20:58 +00:00
David Heinemeier Hansson
df79e135ac Added first stab at page and fragment caching
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@346 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-08 23:32:11 +00:00
David Heinemeier Hansson
efe0348486 Added the possibility of passing nil to UrlHelper#link_to to use the link itself as the name
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@338 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-05 00:38:09 +00:00
David Heinemeier Hansson
ce58e5cd06 Added DateHelper#select_time and DateHelper#select_second #373 [Scott Baron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@311 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 15:32:01 +00:00
David Heinemeier Hansson
d91405a415 Fixed UrlHelper#link_to_unless so it doesn't care if the id is a string or fixnum [zenspider]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@256 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-22 22:50:44 +00:00
David Heinemeier Hansson
506fd8ea57 Fixed error rendering of rxml documents to not just swallow the exception and return 0 (still not guessing the right line, but hey)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@238 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-21 02:05:12 +00:00
David Heinemeier Hansson
dad37cfafa FormHelper should only use *_before_type_cast if they available on the model
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@229 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-19 16:39:56 +00:00
David Heinemeier Hansson
c8b24915c6 Fixed that textilize and markdown would instantiate their engines even on empty strings. This also fixes #333 [Ulysses]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-19 13:33:51 +00:00