David Heinemeier Hansson
|
7411af95db
|
Replace the in-memory object, but dont orphan the existing one
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1393 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-07 12:48:37 +00:00 |
|
David Heinemeier Hansson
|
2bdaff4a4e
|
Added a second parameter to the build and create method for has_one that controls whether the existing association should be replaced (which means nullifying its foreign key as well). By default this is true, but false can be passed to prevent it.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1392 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-06 21:10:59 +00:00 |
|
Jamis Buck
|
5c2e0fe649
|
Add a test case for malformed email headers
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1391 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-06 16:47:20 +00:00 |
|
Jamis Buck
|
481d579734
|
Don't error while processing encoded attachment names #1340 [lon@speedymac.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1390 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-06 16:12:38 +00:00 |
|
Jamis Buck
|
cf1e2a84ff
|
Handle parsing of recursively multipart messages
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1389 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-06 16:06:26 +00:00 |
|
David Heinemeier Hansson
|
5add31eda4
|
CSS needs "red" not #red
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1388 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-06 09:48:48 +00:00 |
|
Jamis Buck
|
508c26c0bb
|
BCC headers are removed when sending via SMTP
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1387 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-06 09:32:52 +00:00 |
|
Jamis Buck
|
ba254b5494
|
Using transactional fixtures now causes the data to be loaded only once, for BIG speed improvements
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1384 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-03 16:06:38 +00:00 |
|
Jamis Buck
|
6d9ee4a306
|
Added fixture accessors that can be used when fixture instantiation is disabled, "model_name(:fixture_name)"
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-03 11:49:34 +00:00 |
|
Jamis Buck
|
100fd72699
|
Added a "content_type" accessor to allow messages to explicitly specify a content-type other than "text/plain" (the default).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1382 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-03 10:57:06 +00:00 |
|
Jamis Buck
|
887497b0bb
|
Don't apply a charset to attachments. Wrap base64-encoded lines.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1381 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-03 09:05:06 +00:00 |
|
David Heinemeier Hansson
|
32c0e895bf
|
Fixed scaffolding to use the latest style
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1380 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-02 20:13:02 +00:00 |
|
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 |
|
Leon Breedt
|
46e68538c0
|
fix scaffolding template paths (Pathname does weird things on Win32)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1375 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-31 02:50:02 +00:00 |
|
Jamis Buck
|
19da52d69d
|
Ignore Iconv::IllegalSequence errors when converting text #1341 [lon@speedymac.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1374 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-30 23:09:50 +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 |
|
Jamis Buck
|
359caef33c
|
A very thorough refactoring, resulting in new mail property setters and support for attachments and multipart messages.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1359 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-29 16:36:22 +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
|
3022ee84cc
|
Added note of limitation for #1279
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1347 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-21 18:23:35 +00:00 |
|
David Heinemeier Hansson
|
a1e9ceebd5
|
Added Errors#add_on_blank which works like Errors#add_on_empty, but uses Object#blank? instead. CHANGED: validates_presence_of now uses Errors#add_on_blank, which will make " " fail the validation where it didnt before #1309. Added that " " is now also blank? (using strip if available)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1346 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-21 18:12:36 +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
|
194fc9de5d
|
Slight change to allow custom date/time conversions #1326 [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1344 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-21 14:57:23 +00:00 |
|
David Heinemeier Hansson
|
52ecf9a318
|
Remove unneeded file
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1343 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-21 13:21:55 +00:00 |
|
David Heinemeier Hansson
|
48bb9bb0ad
|
Missing file
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1342 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-21 13:21:29 +00:00 |
|
David Heinemeier Hansson
|
ca873648ea
|
Added graceful exit from pressing CTRL-C during the run of the rails command #1150 [Caleb Tennis]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1341 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-21 11:05:18 +00:00 |
|
David Heinemeier Hansson
|
10eb22cdce
|
Added the :if option to all validations that can either use a block or a method pointer to determine whether the validation should be run or not. #1324 [Duane Johnson/jhosteny]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1340 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-21 10:57:18 +00:00 |
|
David Heinemeier Hansson
|
2bccdba9d1
|
Made the console and profiler work with the default 1.8.2 profiler #1325 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1339 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-21 10:49:15 +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
|
8cc64e77cf
|
Needed for test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1335 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-20 07:06:36 +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 |
|
Leon Breedt
|
92b925b1c5
|
memo to self: add :rest dispatching mode, and vanilla XML message support
a.l.a Backpack API...its so Web 2.0 :)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1333 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-20 01:36:02 +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
|
4a7225a1bd
|
Fixed Dependencies so all modules are able to load missing constants #1173 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1331 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-19 19:17:08 +00:00 |
|
David Heinemeier Hansson
|
71b6f76543
|
Fixed the Inflector to underscore strings containing numbers, so Area51Controller becomes area51_controller #1176 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-19 19:15:30 +00:00 |
|
David Heinemeier Hansson
|
6375569484
|
Fixed that HashWithIndifferentAccess stringified all keys including symbols, ints, objects, and arrays #1162 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-19 19:13:30 +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 |
|