Jeremy Kemper
|
1ac7cd56fe
|
Clean up the simply_helpful merge.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6751 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-18 00:36:14 +00:00 |
|
Rick Olson
|
ebf9b3737b
|
Add some performance enhancements to ActionView.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6736 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-15 06:36:34 +00:00 |
|
Rick Olson
|
80074cb4de
|
Assume that rendered partials go by the HTML format by default
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6734 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-15 03:13:32 +00:00 |
|
David Heinemeier Hansson
|
6e7b593992
|
Added record identifications to FormHelper#form_for and PrototypeHelper#remote_form_for [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6731 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-14 17:30:35 +00:00 |
|
David Heinemeier Hansson
|
c769ad8533
|
Removed deprecated parameters_for_method_reference concept (legacy from before named routes) [DHH] Added record identification with polymorphic routes for ActionController::Base#url_for and ActionView::Base#url_for [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6729 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-12 21:12:31 +00:00 |
|
Marcel Molina
|
e4c5ddd839
|
Modernize documentation for form helpers. Closes #8035. [jeremymcanally]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6689 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-06 05:23:03 +00:00 |
|
Marcel Molina
|
f02a0bf274
|
Minor wording tweak to documentation for the debug helper. Closes #8037. [jeremymcanally]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6688 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-06 05:19:02 +00:00 |
|
Marcel Molina
|
4e51123a01
|
Fix various documentation typos throughout ActionPack. Closes #8111. [Henrik N]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6679 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-06 04:46:11 +00:00 |
|
Marcel Molina
|
f07d0e29da
|
Enhance documentation and add examples for url_for. Closes #8227. [jeremymcanally]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6674 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-06 04:29:42 +00:00 |
|
David Heinemeier Hansson
|
edaf6baea7
|
Fixed that content_tag with a block will just return the result instead of concate it if not used in a ERb view #7857, #7432 [michael.niessner]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-02 22:30:41 +00:00 |
|
David Heinemeier Hansson
|
da257eb81b
|
Added the first part of Simply Helpful to core. The rest is pending a clean integartion of polymorphic urls [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6633 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-30 01:17:56 +00:00 |
|
Rick Olson
|
eb7a3045e3
|
apply [6543] to edge. Closes #5044 [tpope]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6545 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-20 21:44:08 +00:00 |
|
Rick Olson
|
39ccb5e807
|
Tweak template format rules so that the ACCEPT header is only used if it's text/javascript. This is so ajax actions without a :format param get recognized as Mime::JS. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-15 18:01:40 +00:00 |
|
Rick Olson
|
6351e0a541
|
The default respond_to blocks don't set a specific extension anymore, so that both 'show.rjs' and 'show.js.rjs' will work. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6517 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-12 20:25:32 +00:00 |
|
Rick Olson
|
ec4d407d4f
|
add #view_paths attr_accessor for ActionView::Base
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6509 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-08 18:29:57 +00:00 |
|
Rick Olson
|
bdb1fcc3b8
|
Fix WSOD due to modification of a formatted template extension so that requests to templates like 'foo.html.erb' fail on the second hit. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6506 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-08 16:53:37 +00:00 |
|
Rick Olson
|
142b074e91
|
Fix WSOD when template compilation fails [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6505 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-08 02:32:25 +00:00 |
|
Rick Olson
|
da6f5a1cb4
|
Change ActionView template defaults. Look for templates using the request format first, such as show.html.erb or show.xml.builder, before looking for the old defaults like show.erb or show.builder [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6499 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-02 00:02:11 +00:00 |
|
Jeremy Kemper
|
67d5a1abed
|
Highlight helper highlights one or many terms in a single pass.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6493 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-30 01:19:01 +00:00 |
|
David Heinemeier Hansson
|
0228975a4e
|
Added that FormTagHelper#submit_tag will return to its original state if the submit fails and you're using :disable_with [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6480 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-27 19:42:54 +00:00 |
|
Rick Olson
|
2a305949d7
|
documentation project patches, closes #7342, #7319, #7316, #7190 [jeremymcanally]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6470 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-27 14:04:06 +00:00 |
|
Jeremy Kemper
|
1def3f0073
|
Deprecation: remove deprecated update_element_function, start_form_tag, and end_form_tag. Use RJS and form_tag instead.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6409 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-13 05:24:10 +00:00 |
|
Jeremy Kemper
|
2823a56f14
|
Deprecation: remove deprecated human_size helper alias. Use number_to_human_size instead.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6407 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-13 05:18:49 +00:00 |
|
Jeremy Kemper
|
dfc1285aad
|
Deprecation: remove deprecated link_to_image and link_image_to methods. Use link_to(image_path(...), url).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6405 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-13 05:12:59 +00:00 |
|
Jeremy Kemper
|
d20b943551
|
Deprecation: privatize deprecated render_partial and render_partial_collection methods.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6404 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-13 05:06:41 +00:00 |
|
Jeremy Kemper
|
83c8db9818
|
Deprecation: remove deprecated instance variables.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6399 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-13 03:49:52 +00:00 |
|
Jeremy Kemper
|
3edc98a1cc
|
form_options_helper refactoring for clarity. Closes #7787.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6377 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-11 13:14:53 +00:00 |
|
David Heinemeier Hansson
|
182b3ed70c
|
Backed out of using File.atomic_write in the asset_tag_helper.rb as its still half-baked. Most importantly, it creates files with different permissions than File.open/write
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6354 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-07 00:48:28 +00:00 |
|
David Heinemeier Hansson
|
d4528effbb
|
Caching shouldnt include the host still
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6353 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-07 00:33:13 +00:00 |
|
Tobias Lütke
|
3644415a1e
|
Cached versions of concatted js/css asset tags have to be written out atomically.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6351 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-06 14:22:40 +00:00 |
|
Jeremy Kemper
|
dbf42e379b
|
Prefer MIME constants to strings. Closes #7707.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-06 09:46:04 +00:00 |
|
Jeremy Kemper
|
a752099082
|
Sort asset sources for consistent results across filesystems. Closes #7615.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6308 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-04 12:36:45 +00:00 |
|
David Heinemeier Hansson
|
1dc56ba481
|
Fixed that FormTagHelper#text_area_tag should disregard :size option if it's not a string [Brendon Davidson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6300 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-03 18:04:44 +00:00 |
|
Jamis Buck
|
b1ff3b48e2
|
Set the original button value in an attribute of the button when using the :disable_with key with submit_tag
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6270 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-28 22:18:50 +00:00 |
|
David Heinemeier Hansson
|
cd4dbd8cd2
|
Doc fixes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6234 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 20:19:24 +00:00 |
|
David Heinemeier Hansson
|
7f55931f80
|
Make sure that the filesystem is not involved with asset hosting
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6187 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 15:28:37 +00:00 |
|
David Heinemeier Hansson
|
e105653066
|
Added .erb and .builder as preferred aliases to the now deprecated .rhtml and .rxml extensions [Chad Fowler]. This is done to separate the renderer from the mime type. .erb templates are often used to render emails, atom, csv, whatever. So labeling them .rhtml doesn't make too much sense. The same goes for .rxml, which can be used to build everything from HTML to Atom to whatever. .rhtml and .rxml will continue to work until Rails 3.0, though. So this is a slow phasing out. All generators and examples will start using the new aliases, though.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6178 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-20 22:09:12 +00:00 |
|
David Heinemeier Hansson
|
aad7fbde68
|
Added caching option to AssetTagHelper#stylesheet_link_tag and AssetTagHelper#javascript_include_tag [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6164 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-18 23:54:20 +00:00 |
|
Jeremy Kemper
|
c9260c556c
|
Add request protocol to asset host if not given. Prefer setting asset host as hostname only, no request protocol.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-18 07:23:57 +00:00 |
|
Jeremy Kemper
|
90c1207c38
|
Work around the two connection per host browser limit: use asset%d.myapp.com to distribute asset requests among asset[0123].myapp.com. Use a DNS wildcard or CNAMEs to map these hosts to your asset server. See http://www.die.net/musings/page_load_time/ for background.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6161 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-18 06:44:20 +00:00 |
|
David Heinemeier Hansson
|
23b2abe313
|
More Safari appeasement
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6137 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-06 20:29:15 +00:00 |
|
David Heinemeier Hansson
|
f57367c832
|
Safari requires an explicit submit
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6136 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-06 19:30:52 +00:00 |
|
David Heinemeier Hansson
|
06b1198736
|
Fix that FormTagHelper#submit_tag using :disable_with should trigger the onsubmit handler of its form if available [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6134 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-06 17:48:38 +00:00 |
|
Rick Olson
|
9f31ecb4c9
|
rename #lookup_template_base_path_for to #find_base_path_for in ActionView::Base [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6132 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-06 03:58:48 +00:00 |
|
Rick Olson
|
2782c37bdf
|
Fix #render_file so that TemplateError is called with the correct params and you don't get the WSOD. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6130 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-05 05:39:23 +00:00 |
|
Rick Olson
|
69b0e5c44a
|
Allow Controllers to have multiple view_paths instead of a single template_root. Closes #2754 [John Long]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6120 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-04 20:47:05 +00:00 |
|
David Heinemeier Hansson
|
5c0227edc9
|
Make sure that the string returned by TextHelper#truncate is actually a string, not a char proxy -- that should only be used internally while working on a multibyte-safe way of truncating [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6096 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-31 17:55:09 +00:00 |
|
David Heinemeier Hansson
|
6b5238aade
|
Added FormBuilder#submit as a delegate for FormTagHelper#submit_tag [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6089 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-29 20:42:46 +00:00 |
|
Jeremy Kemper
|
d6d94c7377
|
date_select and datetime_select take a :default option. Closes #7052.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6080 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 16:44:44 +00:00 |
|
Jeremy Kemper
|
ad29870c21
|
select :multiple => true suffixes the attribute name with [] unless already suffixed. Closes #6977.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6078 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 16:17:55 +00:00 |
|