Commit Graph

716 Commits

Author SHA1 Message Date
David Heinemeier Hansson
3162f386dc Made Action View work with the new render :file/:partial style from the controller
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1379 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-02 20:12:34 +00:00
Jamis Buck
e4c047e489 render(:action) and render() are the only two render calls to use a layout by default. All others default to :layout => false. Also, allow :layout => true to be a synonym for :layout => nil.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1378 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-01 13:39:58 +00:00
Jamis Buck
6ce58318f5 render(:inline) defaults to :layout => false
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1372 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-30 09:12:12 +00:00
Jamis Buck
f8542a64b3 Make sure the benchmarking render method always returns the result of the render, regardless of whether logging is enabled or not.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1371 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-30 09:00:46 +00:00
Jamis Buck
f57ee365e1 render(:text), render(:partial), and render(:nothing) always default to :layout => false. This also fixes send_file, which was applying a layout if one existed for the current action.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1369 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-30 07:51:02 +00:00
Jamis Buck
613260606b verify with :redirect_to won't redirect if a redirect or render has already been performed #1350
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1367 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-30 07:24:46 +00:00
Jamis Buck
00db6f0faa render(:partial => "...") uses an empty hash for the local assigns #1365. render(:partial => true) is identical to the older render_partial()
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1366 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-30 07:20:37 +00:00
Jamis Buck
b6c13f2d70 Don't die when an attempt to delete a cache fails
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1365 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-30 07:05:52 +00:00
David Heinemeier Hansson
79d9794f09 Updated unit test style
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1355 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-22 17:12:29 +00:00
David Heinemeier Hansson
c41f0cc720 Test for no layout on nothing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1354 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-22 16:59:55 +00:00
David Heinemeier Hansson
bdd16a75e6 render :nothing shouldnt cause layouts
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1353 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-22 16:57:51 +00:00
David Heinemeier Hansson
060ecf1a24 Set redirected_to proper
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1352 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-22 16:52:54 +00:00
David Heinemeier Hansson
2f7c5f84e4 Cure some ills discovered with the refactoring
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1351 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-22 11:07:09 +00:00
David Heinemeier Hansson
da0c4c5c96 Deprecated all render_* methods in favor of consolidating all rendering behavior in Base#render(options). This enables more natural use of combining options, such as layouts
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-22 08:58:43 +00:00
David Heinemeier Hansson
0367317dd6 Deprecated redirect_to_path and redirect_to_url in favor of letting redirect_to do the right thing when passed either a path or url. Introduced r as a unified method for render (still under construction)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1349 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-22 07:43:05 +00:00
David Heinemeier Hansson
dab360e181 Added DoubleRenderError exception that'll be raised if render* is called twice #518 [Nicholas Seckar]. Fixed exceptions occuring after render has been called #1096 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1348 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-21 18:51:08 +00:00
David Heinemeier Hansson
7159402c6d Fixed use of an integer as return code for renders, so render_text "hello world", 404 now works #1327
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1345 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-21 17:50:57 +00:00
David Heinemeier Hansson
997eb90c90 Made the post_format work with content-type
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1337 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-20 18:39:40 +00:00
David Heinemeier Hansson
24b13acd42 Made the post_format work with content-type
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1336 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-20 18:32:04 +00:00
David Heinemeier Hansson
9bf38dec69 Include flash in the list of attributes with accessors in the view
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1334 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-20 07:04:51 +00:00
David Heinemeier Hansson
d3704f888b Fixed assert_redirect_to to work with redirect_to_path #869 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1332 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 19:19:58 +00:00
David Heinemeier Hansson
7160ab1c18 Fixed escaping of :method option in remote_form_tag #1218 [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1328 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 19:08:16 +00:00
David Heinemeier Hansson
977671c226 Optimize ActionCacheFilter by using url_for less #1230 [skaen]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1326 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 18:59:43 +00:00
David Heinemeier Hansson
caf6ff6a2f Cache relative_url_root and optimize path #1232 [skaen]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1325 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 18:55:50 +00:00
David Heinemeier Hansson
3a057ea4ac Faster action_exempted? #1231 [skaen]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1324 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 18:54:16 +00:00
David Heinemeier Hansson
45ee71af3c Added Serbia and Montenegro to the country_select #1239 [todd@robotcoop.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1323 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 18:30:53 +00:00
David Heinemeier Hansson
dd8c92ea5b Fixed Request#remote_ip in testing #1251 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1322 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 18:24:52 +00:00
David Heinemeier Hansson
473e5bde74 Fixed that compute_public_path should recognize external URLs, so image_tag("http://www.example.com/images/icon.gif") is not prefixed with the relative url path #1254 [victor-ronr-trac@carotena.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1321 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 18:06:12 +00:00
David Heinemeier Hansson
202d5c0751 Added support for descending year values in DateHelper#select_year, like select_year(Date.today, :start_year => 2005, :end_year => 1900), which would count down from 2005 to 1900 instead of the other way #1274 [nwoods@mail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1320 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 17:40:02 +00:00
David Heinemeier Hansson
26022d8d2a Ajax docing #1282 [Dee.Zsombor@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1318 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 17:29:20 +00:00
David Heinemeier Hansson
496ee0cd1b Fixed that FormHelper#checkbox should return a checked checkbox if the value is the same as checked_value #1286 [Florian Weber]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1317 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 17:27:08 +00:00
David Heinemeier Hansson
9b1fefbf54 Fixed doc #1291
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1315 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 17:14:35 +00:00
David Heinemeier Hansson
7ec91d4651 Fixed Form.disable in Prototype #1317 [Wintermute]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1311 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 16:45:53 +00:00
David Heinemeier Hansson
6ea6a725c4 Push to .org instead
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1310 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 16:42:47 +00:00
David Heinemeier Hansson
aa20834222 Added accessors to logger, params, response, session, and headers from the view, so you can write <% logger.info "stuff" %> instead of <% @logger.info "others" %> -- more consistent with the preferred way of accessing these attributes and collections from the controller
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1307 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 16:00:04 +00:00
David Heinemeier Hansson
68cdcf5ed3 Update docs to X-POST_DATA_MARSHAL
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1306 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-14 09:36:30 +00:00
David Heinemeier Hansson
cada2c71d3 Use X-POST_DATA_FORMAT instead of just POST_DATA_FORMAT
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1305 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-14 09:31:35 +00:00
David Heinemeier Hansson
86d2b2792a Added support for POST data in form of YAML or XML, which is controller through the POST_DATA_MARSHAL header
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1304 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-14 08:38:37 +00:00
David Heinemeier Hansson
db11abbfba Added support for POST data in form of YAML or XML, which is controller through the POST_DATA_MARSHAL header
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1303 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-14 08:36:19 +00:00
David Heinemeier Hansson
51f9c931ea Fixed that render_partial_collection should always return a string (and not sometimes an array, despite <%= %> not caring)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1302 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-13 16:27:36 +00:00
David Heinemeier Hansson
8983a09752 Go straight to the class for asset_host
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1299 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-09 11:27:39 +00:00
David Heinemeier Hansson
45780be2a7 Added TextHelper#sanitize that can will remove any Javascript handlers, blocks, and forms from an input of HTML. This allows for use of HTML on public sites, but still be free of XSS issues. #1277 [Jamis Buck]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1298 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-09 11:24:18 +00:00
David Heinemeier Hansson
b167248b21 Fixed the HTML scanner used by assert_tag where a infinite loop could be caused by a stray less-than sign in the input #1270 [Jamis Buck]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1297 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-09 11:20:19 +00:00
David Heinemeier Hansson
8a41ea4588 Only gsub on a string
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1292 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-06 18:10:13 +00:00
David Heinemeier Hansson
409bc0970a Added functionality to assert_tag, so you can now do tests on the siblings of a node, to assert that some element comes before or after the element in question, or just to assert that some element exists as a sibling #1226 [Jamis Buck]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1291 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-06 16:42:01 +00:00
David Heinemeier Hansson
c971c24839 Changed RAILS_ASSET_HOST to become ActionController::Base.asset_host
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1289 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-06 05:10:36 +00:00
David Heinemeier Hansson
358a669390 Added better error handling for regexp caching expiration
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1288 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-06 05:09:01 +00:00
David Heinemeier Hansson
ac44be3494 Treat all request types as upper-case so the switch will work
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1283 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-04 10:46:33 +00:00
David Heinemeier Hansson
8b2598bb64 Made it default to assuming a GET request and reading from command-line only in case of the new CMD method
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1282 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-04 09:39:41 +00:00
David Heinemeier Hansson
dacb61c8ca Added that both AssetHelper#stylesheet_link_tag and AssetHelper#javascript_include_tag now accept an option hash as the last parameter, so you can do stuff like: stylesheet_link_tag "style", :media => "all"
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1281 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-03 14:39:57 +00:00
David Heinemeier Hansson
d2fb072563 Added FormTagHelper#image_submit_tag for making submit buttons that uses images
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1280 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-03 14:30:53 +00:00
David Heinemeier Hansson
2eebd11e0b Added the option of specifying a RAILS_ASSET_HOST that will then be used by all the asset helpers. This enables you to easily offload static content like javascripts and images to a separate server tuned just for that.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1279 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-03 10:25:01 +00:00
David Heinemeier Hansson
1edb807aff Dont expire or read fragments if caching is turned off
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1270 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-02 07:49:55 +00:00
David Heinemeier Hansson
577a22c47e Dont benchmark if the logger has been turned off
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1269 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-02 07:05:15 +00:00
David Heinemeier Hansson
e6f3e5d900 Fixed action/fragment caching using the filestore when a directory and a file wanted to to use the same name. Now there's a .cache prefix that sidesteps the conflict #1188 [imbcmdth@hotmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1260 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 15:29:27 +00:00
David Heinemeier Hansson
537efa36d0 Doc fix #1200
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1257 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 13:36:40 +00:00
David Heinemeier Hansson
90b08c5b92 Fixed documentation #1214
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1254 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 08:50:10 +00:00
David Heinemeier Hansson
98306bed05 Fixed missing id uniqueness in FormTag#radio_button #1207 [Jarkko]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1253 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 08:46:22 +00:00
David Heinemeier Hansson
b4fe4daa84 Fixed assert_redirected_to to work with :only_path => false #1204 [Alisdair McDiarmid]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1251 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 08:34:02 +00:00
David Heinemeier Hansson
c29cfe389e Check definition on constant not string
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1250 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 08:33:25 +00:00
David Heinemeier Hansson
6d0ddd818a Fixed render_partial_collection to output an empty string instead of nil when handed an empty array #1202 [Ryan Carver]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1249 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 08:29:50 +00:00
David Heinemeier Hansson
5640f76970 Improved the speed of regular expression expirations for caching by a factor of 10 #1221 [Jamis Buck]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 08:23:42 +00:00
David Heinemeier Hansson
fe00c275cd Removed dumping of template assigns on the rescue page as it would very easily include a ton of data making page loads take seconds (and the information was rarely helpful) #1222
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1246 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 08:19:14 +00:00
David Heinemeier Hansson
61cafca6ea Disregard expire methods when the controller hasnt been set, which essentially makes it such that the record observer callbacks are ignored when the sweeper shouldnt be active
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1242 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-27 17:40:51 +00:00
David Heinemeier Hansson
f871f33994 Added descriptions for new caching features
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1241 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-27 08:18:42 +00:00
David Heinemeier Hansson
fbd86c2017 Added BenchmarkHelper that can measure the execution time of a block in a template and reports the result to the log
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1240 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-27 08:17:25 +00:00
David Heinemeier Hansson
a2ef9778ce Added ActionController::Caching::Sweeper as an improved an easier to use sweeper. Added that Fragments#expire_fragment now accepts as a regular expression as the name thereby deprecating expire_matched_fragments. Fixed that fragments shouldn't use the current host and the path as part of the key like pages does
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1239 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-27 08:14:53 +00:00
David Heinemeier Hansson
734c69f241 Added conditions to around_filters just like before_filter and after_filter
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1238 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-27 06:42:12 +00:00
David Heinemeier Hansson
77af61be40 Added xml_http_request/xhr method for simulating XMLHttpRequest in functional tests #1151 [Sam Stephenson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-19 16:34:44 +00:00
Sam Stephenson
71a616890b Update to Prototype 1.2.1
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1228 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-19 11:16:50 +00:00
David Heinemeier Hansson
5462358cd3 Fixed that :get, :post, and the others should take a flash array as the third argument just like process #1144 [rails@cogentdude.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-19 11:04:38 +00:00
David Heinemeier Hansson
0dd497853a More documentation #1148 [Alisdair McDiarmid]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-19 10:59:55 +00:00
David Heinemeier Hansson
865874ab6a Fixed stringification on all assigned hashes. The sacrifice is that assigns[:person] wont work in testing. Instead assigns["person"] or assigns(:person) must be used. In other words, the keys of assigns stay strings but weve added a method-based accessor to appease the need for symbols.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1223 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-19 10:26:03 +00:00
David Heinemeier Hansson
aa236c4425 Fixed that rendering a template would require a connection to the database #1146
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1222 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-19 09:57:15 +00:00
David Heinemeier Hansson
420b830b00 Fixed that rendering a template would require a connection to the database #1146
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1221 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-19 09:54:10 +00:00
David Heinemeier Hansson
7d01005514 Fixed documentation and prepared for release of 0.12
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-18 20:10:11 +00:00
David Heinemeier Hansson
3b9bf64130 Added support for web servers that use PATH_INFO instead of REQUEST_URI like IIS #1014 [BradG/Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1211 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-18 15:43:07 +00:00
David Heinemeier Hansson
e9681eb9c5 Added graceful handling of PUT, DELETE, and OPTIONS requests for a complete coverage of REST functionality #1136 [joshknowles@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1208 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-18 14:15:26 +00:00
David Heinemeier Hansson
bceb88ef9c Fixed that you can now pass an alternative :href option to link_to_function/remote in order to point to somewhere other than # if the javascript fails or is turned off. You can do the same with form_remote_tag by passing in :action. #1113 [Sam Stephenson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1200 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-18 05:15:17 +00:00
Sam Stephenson
d547c3f5ec Update to Prototype 1.2.0
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1198 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-18 02:16:13 +00:00
David Heinemeier Hansson
806cf6d76a Added assert_tag and assert_no_tag as a much improved alternative to the deprecated assert_template_xpath_match #1126 [Jamis Buck]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1195 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-17 16:43:48 +00:00
David Heinemeier Hansson
95e6c03de7 Added Request#xml_http_request? (and an alias xhr?) to that'll return true when the request came from one of the Javascript helper methods (Ajax). This can be used to give one behavior for modern browsers supporting Ajax, another to old browsers #1127 [Sam Stephenson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1194 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-17 16:40:53 +00:00
David Heinemeier Hansson
7cda49248b Fixed page caching for non-vhost applications living underneath the root #1004 [Ben Schumacher]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1193 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-17 14:10:24 +00:00
David Heinemeier Hansson
72c51356c5 Hide the deprecated methods from the docs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1190 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-17 11:47:54 +00:00
David Heinemeier Hansson
dca7efa67e Deprecated the majority of all the testing assertions and replaced them with a much smaller core and access to all the collections the old assertions relied on. That way the regular test/unit assertions can be used against these. Added documentation about how to use it all.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1189 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-17 11:38:01 +00:00
David Heinemeier Hansson
8e8bf37aa9 Fixed DateHelper to return values on the option tags such that they'll work properly in IE with form_remote_tag #1024 [rscottmace@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1184 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-17 09:44:28 +00:00
David Heinemeier Hansson
ba96827b3d Fixed FormTagHelper#check_box to respect checked #1049 [DelynnB]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1183 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-17 09:39:01 +00:00
David Heinemeier Hansson
e5b3d08a0a Added that render_partial called from a controller will use the action name as default #828 [Dan Peterson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1182 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-17 09:25:54 +00:00
David Heinemeier Hansson
c3ca5ab7a8 Added Element.toggle, Element.show, and Element.hide to the prototype javascript library. Toggle.display has been deprecated, but will still work #992 [Lucas Carlson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1181 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-17 07:52:50 +00:00
David Heinemeier Hansson
6acda705dc Added that deleting a cookie should not just set it to an empty string but also instantly expire it #1118 [todd@robotcoop.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-17 07:18:39 +00:00
David Heinemeier Hansson
ffdd4bc251 Added AssetTagHelper#image_path, AssetTagHelper#javascript_path, and AssetTagHelper#stylesheet_path #1110 [Larry Halff]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-17 06:23:27 +00:00
David Heinemeier Hansson
5e3b8b36fa Fixed url_for(nil) in functional tests #1116 [Alisdair McDiarmid]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1175 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-17 06:18:33 +00:00
David Heinemeier Hansson
68dfe3e046 Clean up load paths to avoid unit test interaction #1113 [alles@atomicobject.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1174 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-17 06:16:00 +00:00
David Heinemeier Hansson
db16349bc1 Fixed error handling of broken layouts #1115 [Michael Schubert]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1173 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-17 06:11:58 +00:00
David Heinemeier Hansson
6ee06ebec6 Changed render_partial to take local assigns as the second parameter instead of an explicit object and then the assigns
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1170 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-16 16:08:29 +00:00
David Heinemeier Hansson
82456d9392 Fixed partials handling
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1169 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-16 16:06:29 +00:00
David Heinemeier Hansson
f3e5e07982 Added submit_to_remote that allows you to trigger an Ajax form submition at the click of the submission button, which allows for multiple targets in a single form through the use of multiple submit buttons #930 [yrashk@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1160 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-13 05:44:43 +00:00
David Heinemeier Hansson
ad24c6d756 Fixed pagination to work with joins #1034 [scott@sigkill.org]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-13 05:40:22 +00:00
David Heinemeier Hansson
7f558cbd05 Fixed that *rest parameter in map.connect couldn't accept an empty list #1037 [Dee.Zsombor@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1158 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-13 05:35:51 +00:00
David Heinemeier Hansson
2ad8dc6a1f Added :confirm option to link_to_remote just like link_to has #1082 [yrashk@fp.org.ua]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1156 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-13 05:21:37 +00:00
David Heinemeier Hansson
c29db9f210 Added minute_step as an option to select_minute (and the helpers that use it) to jump in larger increments than just 1 minute. At 15, it would return 0, 15, 30, 45 options #1085 [ordwaye@evergreen.edu]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1154 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-13 05:15:41 +00:00
David Heinemeier Hansson
e0a2dab816 Added KLOC counter for AR and AP. Combined theyre at ~9KLOC
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1153 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-13 05:06:40 +00:00
David Heinemeier Hansson
bf1bcff2bd Fixed that an exception would be thrown when an empty form was submitted #1090 [jan@ulbrich-boerwang.de]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1152 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-13 04:50:54 +00:00
David Heinemeier Hansson
988dc1e862 Improved tests for NumberHelper
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1151 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-13 04:49:01 +00:00
David Heinemeier Hansson
6f5fcc4469 Made error_messages_for take a symbol as object_name
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1148 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-12 17:44:28 +00:00
David Heinemeier Hansson
7140f65355 Moved TextHelper#human_size to NumberHelper#number_to_human_size, but kept an deprecated alias to the old method name
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1147 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-12 08:04:38 +00:00
David Heinemeier Hansson
1cad24f6fd Doc fix
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1140 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-10 17:43:12 +00:00
David Heinemeier Hansson
a0403bd732 Fixed #1030
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1139 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-10 17:42:17 +00:00
David Heinemeier Hansson
5cd815addf Fixed spelling of delimiter #1058
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1134 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-10 17:30:38 +00:00
David Heinemeier Hansson
2119e0699a Fixed that the content-type for some browsers could include an additional \r which made wonky things happen #1067 [Thomas Fuchs]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1130 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-10 15:22:32 +00:00
David Heinemeier Hansson
023b6855eb Updated docs #1068
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1129 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-10 15:13:44 +00:00
David Heinemeier Hansson
ac4b4701c0 Fixed that radio buttons shouldn't have a default size attribute #1074 [hendrik@mans.de] Added ActionView::Helpers::InstanceTag::DEFAULT_RADIO_OPTIONS that contains a hash of default options for radio buttons #1074 [hendrik@mans.de]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1127 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-10 15:11:15 +00:00
David Heinemeier Hansson
25d27b39ea Fixed a few tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1126 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-10 15:07:52 +00:00
David Heinemeier Hansson
87bed3af47 Fixed that in some circumstances controllers outside of modules may have hidden ones inside modules. For example, admin/content might have been hidden by /content. #1075 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1125 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-10 15:01:35 +00:00
David Heinemeier Hansson
90720a26f6 Fixed syntax error
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1112 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-07 08:37:26 +00:00
David Heinemeier Hansson
4bdb25da18 Update to the helper to abstract delimeting a number #1015
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1111 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-07 06:56:49 +00:00
David Heinemeier Hansson
1a22fb59c9 Added JavascriptHelper#periodically_call_remote in order to create areas of a page that update automatically at a set interval #945 [Jon Tirsen]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1108 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-07 06:43:21 +00:00
David Heinemeier Hansson
aefb36a688 Fixed Cache#expire_matched_fragments that couldn't recognize the difference between string and url_for options #1030 [skaes@web.de]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-07 06:35:27 +00:00
David Heinemeier Hansson
4ab40059b7 Added simulation of @request.request_uri in functional tests #1038 [Jamis Buck]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1103 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-07 06:22:19 +00:00
David Heinemeier Hansson
bd9a81ca2d Moved to new server
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1102 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-07 06:20:54 +00:00
David Heinemeier Hansson
808d76a858 Fixed autolinking to work better in more cases #1013 [Jamis Buck]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1100 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-06 15:22:46 +00:00
David Heinemeier Hansson
480150e5fb Fixed autolinking to work better in more cases #1013 [Jamis Buck]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1099 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-06 15:22:32 +00:00
David Heinemeier Hansson
a87c1d4dd8 Made it possible to do text_field :account, :name in addition to text_field "account", "name"
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1088 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-04 15:43:17 +00:00
David Heinemeier Hansson
d3a64c04ec Fixed javascript_include_tag to output type instead of language and conform to XHTML #1018 [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-03 16:23:56 +00:00
David Heinemeier Hansson
aa09c770e9 Added NumberHelper for common string representations like phone number, currency, and percentage #1015 [DeLynn]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1071 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-02 15:14:57 +00:00
David Heinemeier Hansson
91834e0c3f Fixed that benchmarking times for rendering included db runtimes #987 [skaes@web.de]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1070 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-02 09:31:58 +00:00
David Heinemeier Hansson
7c8d2f28e1 Removed broken attempt to DRY module ClassMethod #970
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1069 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-02 09:29:43 +00:00
David Heinemeier Hansson
c788bcb416 Automatically extend the class which gets a module included with the ClassMethods module if it exists #970 [Lucas Carlson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1068 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-02 09:14:19 +00:00
David Heinemeier Hansson
3532455404 Added pagination for scaffolding (10 items per page) #964 [mortonda@dgrmm.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1067 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-02 09:11:17 +00:00
David Heinemeier Hansson
ce96c5b30b Added assert_no_cookie and fixed assert_cookie_equal to deal with non-existing cookies #979 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1065 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-02 08:54:25 +00:00
David Heinemeier Hansson
5d42774b62 Fixed :overwrite_param so it doesn't delete but reject elements from @request.parameters #982 [raphinou@yahoo.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1061 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-02 08:35:04 +00:00
David Heinemeier Hansson
00121b2ca2 Added :method option to verify for ensuring that either GET, POST, etc is allowed #984 [Jamis Buck]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1060 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-02 08:33:30 +00:00
David Heinemeier Hansson
f7c61b629e Added options to set cc, bcc, subject, and body for UrlHelper#mail_to #966 [DeLynn]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1056 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-02 08:16:57 +00:00
David Heinemeier Hansson
7d09b8d723 Fixed include_blank for select_hour/minute/second #527 [edward@debian.org]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1055 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-02 07:54:01 +00:00
David Heinemeier Hansson
8d488264b5 Added install.rbs for all frameworks and made all of them generic enough not to require maintenance #1013, #1012
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1053 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-02 07:29:08 +00:00
David Heinemeier Hansson
998ab50974 Improved the message display on the exception handler pages #963 [Johan Sorensen]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1048 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-31 14:46:11 +00:00
David Heinemeier Hansson
8499c24770 Added Effect.Puff and Effect.Appear #990, #996
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1046 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-31 11:53:06 +00:00
David Heinemeier Hansson
93e361e58a Fixed that on very rare occasions, webrick would raise a NoMethodError: private method 'split' called for nil #1001 [Flurin Egger]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1045 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-31 11:46:50 +00:00
David Heinemeier Hansson
ea3016f5d9 Renamed DateHelper#distance_of_time_in_words_to_now to DateHelper#time_ago_in_words (old method name is still available as a deprecated alias)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1038 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-30 13:06:19 +00:00
David Heinemeier Hansson
c73a414a9a Fixed references to element
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1034 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-28 23:57:43 +00:00
David Heinemeier Hansson
ce2fe88d53 Added Effect.Scale for smoothly scaling images or text up and down #972 [thomas@fesch.at] Added Effect.Squish for scaling down an element and making it disappear at the end #972 [thomas@fesch.at]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1033 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-28 23:32:24 +00:00
David Heinemeier Hansson
b0c0c9c2ef Added Effect.Fade which smoothly turns opacity from 100 to 0 and then hides the element #960 [thomas@fesch.at]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1032 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-28 10:22:44 +00:00
David Heinemeier Hansson
439a216dcb Fixed problem with page caching #958 [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1029 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-27 21:52:48 +00:00
David Heinemeier Hansson
04c7e82369 Made ready for the release of 0.11.1
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1023 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-27 14:10:42 +00:00
David Heinemeier Hansson
065cb2a08d Made ready for better release automation
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1021 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-27 13:33:54 +00:00
David Heinemeier Hansson
dfadbfd3dc Added ActionController::Base.page_cache_extension for setting the page cache file extension (the default is .html) #903 [Andreas]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1019 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-27 00:30:35 +00:00
David Heinemeier Hansson
216b1b7897 Fixed "bad environment variable value" exception caused by Safari, Apache, and Ajax calls #918
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1018 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-27 00:10:53 +00:00
David Heinemeier Hansson
ad6798f965 Fixed that pagination_helper would ignore :params #947 [Sebastian Kanthak]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1017 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-27 00:04:07 +00:00
David Heinemeier Hansson
d3e1e03056 Added :owerwrite_params back to url_for and friends -- it was AWL since the introduction of Routes #921 [raphinou]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1016 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-27 00:01:56 +00:00
David Heinemeier Hansson
8ff6d76c6a Added :position option to link_to_remote/form_remote_tag that can be either :before, :top, :bottom, or :after and specifies where the return from the method should be inserted #952 [Matthew McCray/Sam Stephenson] Added Effect.Highlight to prototype.js to do Yellow Fade Technique (of 37signals' fame) on any container #952 [Sam Stephenson/?]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1015 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-26 23:49:18 +00:00
David Heinemeier Hansson
92088a920b Effects can just be used through the callbacks
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1014 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-26 23:43:29 +00:00
David Heinemeier Hansson
f7b89667ac Fixed a couple of more js issues
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1013 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-26 23:41:04 +00:00
David Heinemeier Hansson
4c3d52ad66 Updated to prototype.js 1.1.0
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1012 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-26 23:16:55 +00:00
David Heinemeier Hansson
5d6bedb383 Whitespace flicker
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1011 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-26 22:39:46 +00:00
David Heinemeier Hansson
520dae295b Added include_seconds option as the third parameter to 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
2005-03-26 22:00:23 +00:00
David Heinemeier Hansson
9fb6a54a16 Added fourth option to process in test cases to specify the content of the flash #949 [Jamis Buck]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1009 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-26 21:43:25 +00:00
David Heinemeier Hansson
f569a14318 Added Verifications that allows you to specify preconditions to actions in 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
2005-03-26 21:41:10 +00:00
David Heinemeier Hansson
48b4d28d81 Fixing JS bugs, renamed :position values
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1007 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-26 20:27:04 +00:00
David Heinemeier Hansson
8e76a5920e Added other DOM manipulation positions than just replace
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1006 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-26 15:35:06 +00:00
David Heinemeier Hansson
e79801d7f2 Fixed highlight effect
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1005 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-26 15:22:18 +00:00
David Heinemeier Hansson
ae5f3c7488 Added :highlight effect to do YFT automatically
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1004 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-26 15:01:11 +00:00
David Heinemeier Hansson
9ca9f95aee Fixed Form.Serialize for the JavascriptHelper to also seriliaze password fields #934 [dweitzman@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1003 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-26 14:07:08 +00:00
David Heinemeier Hansson
3fe9d8ac35 Added JavascriptHelper#escape_javascript as a public method (was private) 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
2005-03-26 14:03:55 +00:00
David Heinemeier Hansson
7a6a923f98 Added trailing_slash option to url_for, so you can generate urls ending in a slash. Note that is currently not recommended unless you need it for special reasons since it breaks caching #937 [stian@grytoyr.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1001 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-26 13:38:21 +00:00
David Heinemeier Hansson
cef57e0cc2 Added documentation on models in sessions #929 [c.r.mcgrath@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1000 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-26 13:35:22 +00:00
David Heinemeier Hansson
a5b55c6b9f Removed old UrlWriter methods that are no longer in use after Routes #942
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@999 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-26 13:31:01 +00:00
David Heinemeier Hansson
df7a4d498c Added expire_matched_fragments(regular_expression) to clear out a lot of fragment caches at once #927 [technoweenie@gmail.com] Fixed the problems with : and ? in file names for fragment caches on Windows #927 [technoweenie@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@996 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-26 13:09:56 +00:00
David Heinemeier Hansson
b0d69b170f Added TextHelper#human_size for formatting file sizes, like human_size(1234567) => 1.2 MB #943 [thomas@fesch.at]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@995 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-26 12:26:32 +00:00
David Heinemeier Hansson
4b3bb3d2b2 Fixed link_to :confirm #936 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@994 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-26 11:37:08 +00:00
David Heinemeier Hansson
771244a58c Made getElementsByClassName actually work
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@991 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-25 17:28:49 +00:00
David Heinemeier Hansson
45137795e8 Fixed that MissingSourceFile's wasn't properly detected in production mode #925 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@990 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-25 09:07:01 +00:00
David Heinemeier Hansson
3306813be1 Tweaked the rescue with breakpoint, still not perfect
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@986 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-23 12:03:30 +00:00
David Heinemeier Hansson
3697df1dd2 Improved error reporting especially around never shallowing exceptions. Debugging helpers should be much easier now #980 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@984 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-23 11:48:10 +00:00
David Heinemeier Hansson
546f30fc10 Fixed Toggle.display in prototype.js #902 [Lucas Carlson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@980 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-23 00:53:46 +00:00
David Heinemeier Hansson
daaa5251c9 Fixed documentation and prepared for 0.11.0 release
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@976 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-22 13:09:44 +00:00
David Heinemeier Hansson
6ad1b895f4 Updated more documentation
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@975 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-22 12:41:34 +00:00
David Heinemeier Hansson
4e60fe3ef3 Added documentation and fixed an ajax bug
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@974 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-22 12:33:47 +00:00
David Heinemeier Hansson
e1ce18020e Last-minute ajax fixes #898
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@973 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-22 12:13:36 +00:00
David Heinemeier Hansson
0cb18335d9 fix for javascript_helper.rb build_callbacks #893
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@970 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-21 23:41:25 +00:00
David Heinemeier Hansson
32e0138b0b Made the Ajax request itself also use the &_= trick for Safari
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@968 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-21 14:44:33 +00:00
David Heinemeier Hansson
34a9ed5e85 Tweaked the documentation
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@967 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-21 14:35:36 +00:00
David Heinemeier Hansson
24142e1866 Wrong parameter names in observe_field/observe_form
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@966 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-21 13:11:48 +00:00
David Heinemeier Hansson
476f26ee90 Renamed Toggle.visibility to Toggle.display and fixed it for multiple arguments
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@958 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-21 01:34:37 +00:00
David Heinemeier Hansson
71dc36903a Fixed js bug
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@957 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-21 01:10:07 +00:00
David Heinemeier Hansson
5d5f0bad6e Added a JavascriptHelper and accompanying prototype.js library that opens the world of Ajax to Action Pack with a large array of options for dynamically interacting with an application without reloading the page #884 [Sam Stephenson/David]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@955 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-21 00:57:08 +00:00
David Heinemeier Hansson
b88fa4d1df Routes: *path items should use arrays #883
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@954 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-21 00:40:51 +00:00
David Heinemeier Hansson
d578196f9a Added pagination support through both a controller and helper add-on #817 [Sam Stephenson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@949 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-20 23:12:05 +00:00
David Heinemeier Hansson
409d56abda Introduce to_param to assert_redirected_to #880
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@948 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-20 22:44:49 +00:00
David Heinemeier Hansson
0919dbf6b6 Routes: Convert results of #to_param to strings #879
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@947 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-20 22:44:12 +00:00
David Heinemeier Hansson
a61360688c Changed .htaccess to allow dispatch.* to be called from a sub-directory as 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
2005-03-20 22:02:22 +00:00
David Heinemeier Hansson
a35cf348bf Added a much improved Flash module that allows for finer-grained control on 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
2005-03-20 19:12:53 +00:00
David Heinemeier Hansson
7e745f3aa5 Added to_param call for parameters when composing an url using url_for from something else than strings #812 [Sam Stephenson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@935 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-20 15:42:40 +00:00
David Heinemeier Hansson
6cd3bda32f Fixed form helpers to query Model#id_before_type_cast instead of Model#id as 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
2005-03-20 15:08:30 +00:00
David Heinemeier Hansson
1b93da3262 Added TextHelper#simple_format as a non-dependency text presentation 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
2005-03-20 15:03:32 +00:00
David Heinemeier Hansson
ebf6637918 Added that the html options disabled, readonly, and multiple can all be 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
2005-03-20 14:49:37 +00:00
David Heinemeier Hansson
37a46151ec Added path collection syntax for Routes that will gobble up the rest of the 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
2005-03-20 14:04:33 +00:00
David Heinemeier Hansson
f32cbb52a5 Added more FormTagHelper test cases #860 [Eric Hodel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@925 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-20 13:51:01 +00:00
David Heinemeier Hansson
9c605227ec Added a bit more to the session documentation on how to clear sessions
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@922 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-20 13:34:07 +00:00
David Heinemeier Hansson
9015ce4cc2 Fixed options_for_select on selected line issue #624 [Florian Weber]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@911 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-15 00:13:14 +00:00
David Heinemeier Hansson
066988d2f3 Remove superfluous begin/end in caching.rb methods #836
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@908 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-14 23:38:45 +00:00
David Heinemeier Hansson
823a918a52 Added CaptureHelper with CaptureHelper#capture and CaptureHelper#content_for. See documentation in helper #837 [Tobias Luetke]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@907 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-14 23:37:38 +00:00
David Heinemeier Hansson
90f78e2bd1 Fixed :anchor use in url_for #821 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@906 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-14 23:24:47 +00:00
David Heinemeier Hansson
82aff27c04 Remove the duplicated remote_function and make the real deal public
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@905 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-14 16:28:44 +00:00
David Heinemeier Hansson
971fa4cd36 Made async callbacks work with :update
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@904 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-14 15:56:46 +00:00
David Heinemeier Hansson
0c0a10746f Made async the default approach and add get_elements_by_class
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@903 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-14 15:12:31 +00:00
David Heinemeier Hansson
8d646006db Added asynchronous processing model
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@902 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-14 12:47:38 +00:00
David Heinemeier Hansson
193edfbfdb Removed the reliance on PATH_INFO as it was causing problems for caching and 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
2005-03-14 00:25:24 +00:00
David Heinemeier Hansson
9790233dfd Moved image_tag to AssetTagHelper
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@899 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-14 00:18:12 +00:00
David Heinemeier Hansson
0f4ee4b810 Deal with Safari garbage and allow html_options
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@897 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-13 18:06:58 +00:00
David Heinemeier Hansson
66ed733ce5 Added Field.present, .focus, and .clear as JS convenience for working with forms. Removed link_to_display_toggle in favor of link_to_function "Cancel", "toggle_display("add_item_link", "add_item_form")"
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@896 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-13 17:01:59 +00:00
David Heinemeier Hansson
1e24600e72 Added Field.present, .focus, and .clear as JS convenience for working with forms. Removed link_to_display_toggle in favor of link_to_function "Cancel", "toggle_display("add_item_link", "add_item_form")"
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@895 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-13 16:35:15 +00:00
David Heinemeier Hansson
7816420c63 Added :condition option to abort an update if some condition isnt there
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@894 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-13 15:47:06 +00:00
David Heinemeier Hansson
1d4e86b0b9 Checked in some documentation for JavascriptHelper
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@892 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-12 17:00:03 +00:00
David Heinemeier Hansson
48739f3a49 Respect :onclick in link_to_toggle_display
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@891 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-12 16:18:29 +00:00
David Heinemeier Hansson
ebb070e078 Put it in the right module
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@890 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-12 02:59:12 +00:00
David Heinemeier Hansson
7d801ae1c8 Added first stab at Javascript/Ajax helpers
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@889 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-12 02:43:37 +00:00
David Heinemeier Hansson
7ae83e5ff0 Added first stab at Javascript/Ajax helpers
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@888 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-12 02:42:48 +00:00
David Heinemeier Hansson
971c4e61c2 Params for components should treat string and symbol keys indifferently
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@887 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-11 01:55:18 +00:00
David Heinemeier Hansson
651ea0d39c Added assigns shortcut for @response.template.assigns to controller test cases [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@881 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-10 00:36:23 +00:00
David Heinemeier Hansson
7ece0e166d Added render_partial/render_partial_collection from controllers for easier Ajaxing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@880 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-09 15:26:36 +00:00
David Heinemeier Hansson
5a4846a0d3 Added TagHelper#image_tag and deprecated UrlHelper#link_image_to (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
2005-03-09 13:53:47 +00:00
David Heinemeier Hansson
6526adcff9 Fixed textilize to be resilient to getting nil parsed (by using Object#blank? instead of String#empty?)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@878 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-09 13:11:40 +00:00
David Heinemeier Hansson
c81f0309eb Fixed that the :multipart option in FormTagHelper#form_tag would be ignored [Yonatan Feldman]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@877 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-07 11:42:40 +00:00
David Heinemeier Hansson
184419092a Prepared for 0.10.1 release
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@874 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-07 01:50:58 +00:00
David Heinemeier Hansson
239ec08c00 More fixes for symlinked setups #793 [phantom]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@871 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-07 01:07:06 +00:00
David Heinemeier Hansson
620d3a3749 Fixed that the routes.rb file wouldn't be found on symlinked setups due to File.expand_path #793 [piotr@t-p-l.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@870 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 23:55:07 +00:00
David Heinemeier Hansson
86543a70fb Fixed issues with caching root pages #734 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@867 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 23:37:28 +00:00
David Heinemeier Hansson
19e8b42a56 Changed ActiveRecordStore to use Marshal instead of YAML as the latter proved troublesome in persisting circular dependencies. Updating existing applications MUST clear their existing session table from data to start using this updated store #739 [Jamis Buck]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@866 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 23:34:03 +00:00
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
1019bf15a3 Added shortcut :id assignment to render_component and friends (before you had to go through :params) #784 [Lucas Carlson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@862 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 17:27:11 +00:00
David Heinemeier Hansson
688f0f6712 Fixed that map.connect should convert arguments to strings #780 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@855 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 14:16:25 +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
a22ed3d8c2 Use example.com domains to make rails RFC2606 compliant #708
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@840 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 12:27:06 +00:00
David Heinemeier Hansson
6d566e82b4 Fixed rails_generator to be usable without RubyGems #686 [Cristi BALAN]. Moved all active support dependencies into active support
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@838 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 12:20:53 +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
b78283b3fc Fixed that broken pipe errors (clients disconnecting in mid-request) could bring down a fcgi process
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@829 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-03 23:12:57 +00:00
David Heinemeier Hansson
3b2e356cd2 Added the original exception message to session recall errors (so you can see which class wasnt required)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@828 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-03 23:05:16 +00:00
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