10265 Commits

Author SHA1 Message Date
Rick Olson
666537572d finish form_for change, allow hash as the second param: form_for :post, :url => { }.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4051 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-26 20:21:27 +00:00
Nicholas Seckar
2683782455 Remove broken hack which has no effect.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4050 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-26 20:04:14 +00:00
Nicholas Seckar
3bab575316 Update Object.subclasses_of to locate nested classes. Update Object.remove_subclasses_of to use Class.remove_class.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4049 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-26 20:00:40 +00:00
Rick Olson
4238666627 Change #form_for and #fields_for so that the second argument is not required [Dave Thomas]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4047 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-26 19:45:56 +00:00
Scott Barron
c954a5b9a0 When doing svn log -qr HEAD trunk/url, a log message with revision will not
show if the last commit was not in the trunk/ path.

For example, changeset [4045] is for scriptaculous, so the command executed by
rails:freeze:edge:

svn -qr HEAD log http://dev.rubyonrails.org/svn/rails/trunk

Yields the following output:
------------------------------------------------------------------------

Causing the regex to bomb.

Change the command to use --limit 1 instead of HEAD, which will pick up the
last changeset against the trunk path.

Fixes #4356


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4046 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-26 16:12:48 +00:00
Thomas Fuchs
3bcb0b80b1 one too many
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4044 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-26 08:40:49 +00:00
Thomas Fuchs
34db8e8939 Update to script.aculo.us 1.6
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4043 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-26 08:37:19 +00:00
David Heinemeier Hansson
91ea35307a Only string_to_binary if the column responds
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4040 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-26 04:15:57 +00:00
Rick Olson
a5991d8491 Change periods (.) in table aliases to _'s. Closes #4251 [jeff@ministrycentered.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4039 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-26 04:13:25 +00:00
Rick Olson
56af14d5aa Changed has_and_belongs_to_many join to INNER JOIN for Mysql 3.23.x. Closes #4348 [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4038 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-26 04:08:50 +00:00
David Heinemeier Hansson
45e59c8a51 Dont require rake to run the server, just have a little undryness instead (closes #4213) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4037 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-26 03:29:09 +00:00
Rick Olson
6636eb16c5 Fixed issue that kept :select options from being scoped [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4036 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-26 00:36:55 +00:00
David Heinemeier Hansson
c3c39b5cb6 Beef up the default test just a tad
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4035 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-25 23:45:28 +00:00
David Heinemeier Hansson
0a5b8328b9 The Ruby path should be a string (closes #4361) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4033 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-25 23:32:08 +00:00
David Heinemeier Hansson
3cec029685 Do it in style
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4032 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-25 23:10:09 +00:00
David Heinemeier Hansson
5b63c84307 Fixed db_schema_import when binary types are present (closes #3101) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4031 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-25 23:09:52 +00:00
David Heinemeier Hansson
1d79a17c25 ST is Cap (closes #4214)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4030 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-25 21:57:08 +00:00
David Heinemeier Hansson
6247689e59 Added Fixnum#seconds for consistency, so you can say 5.minutes + 30.seconds instead of 5.minutes + 30 (closes #4389) [Francois Beausoleil]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4029 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-25 21:43:46 +00:00
David Heinemeier Hansson
75de3cbb13 Fixed that MySQL enums should always be returned as strings (closes #3501) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4028 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-25 21:42:27 +00:00
Jamis Buck
4b66180cca Add an integration test generator
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4027 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-25 19:57:03 +00:00
David Heinemeier Hansson
9326222941 Use example.com as standard (closes #4413) [anna]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4026 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-25 19:43:40 +00:00
Jamis Buck
7bcf4c6659 Enable application/x-yaml processing by default
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4024 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-25 18:44:28 +00:00
Rick Olson
ef1297d896 remove some documentation cruft on has_many
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4023 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-24 14:56:31 +00:00
Rick Olson
38bae0a969 Change has_many :through to use the :source option to specify the source association. :class_name is now ignored. [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4022 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-24 14:46:17 +00:00
Marcel Molina
cb069ea7cc Don't polute the top level namespace in the console with ActionView helpers. Make them available from a helper method.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4019 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-23 21:56:38 +00:00
David Heinemeier Hansson
4a968d464b Fixed that AWS Scaffold Fails with Struct as a Parameter (closes #4363) [joe@mjg2.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4017 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-23 16:07:03 +00:00
Rick Olson
ed10f873a1 STI associations are now aliased to the table name for backwards compatibility. Added docs for table aliasing [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4015 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-23 06:01:01 +00:00
Nicholas Seckar
c05c22a45f Fix double url escaping of remote_function. Add :escape => false option to ActionView's url_for.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4014 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-22 19:41:39 +00:00
David Heinemeier Hansson
2d24bed3a0 Fixed DB2 adapter so nullable columns will be determines correctly now and quotes from column default values will be removed (closes #4350) [contact@maik-schmidt.de]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4013 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-22 19:30:02 +00:00
David Heinemeier Hansson
f46eb2ab64 Fix test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4012 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-22 19:28:46 +00:00
Rick Olson
f50a95819b fix test so that it passes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4009 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-22 01:03:25 +00:00
Marcel Molina
330823687b Make all ActionView helpers available in the console for debugging purposes.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4008 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
v1.1.0_RC1
2006-03-21 20:07:41 +00:00
Rick Olson
6fbf408238 Allow overriding of find parameters in scoped has_many :through calls [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4007 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-21 16:33:22 +00:00
Rick Olson
c8470f8a5b add self referential has_many :through example [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4006 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-21 01:07:16 +00:00
David Heinemeier Hansson
d15550aecc Fixed the hash.delete :sym (closes #2176) [Stefan Kaes]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4005 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 18:53:52 +00:00
Jamis Buck
b0189f3f2f Fix assert_redirected_to so it works with symbols
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4004 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 18:16:48 +00:00
David Heinemeier Hansson
4941475069 Turn RJS debugging on by default and show the source code when an exception is caught [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4003 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 07:19:27 +00:00
David Heinemeier Hansson
1aff68d615 Fix bug introduced by changeset 3679 which caused custom attribute? methods to be overridden. Also ensure that ? methods are defined even if read method is customised. (closes #3677) [jonathan@bluewire.net.nz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4002 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 06:45:34 +00:00
David Heinemeier Hansson
89c0ab6b82 Added sample named route [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4001 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 06:20:18 +00:00
David Heinemeier Hansson
925d149b3c lighttpd.conf should use CWD so the config file is portable across systems, bad ulysses! ;)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4000 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 06:17:55 +00:00
David Heinemeier Hansson
c4d6b8bb3c Dont line up that which does not
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3999 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 06:13:26 +00:00
David Heinemeier Hansson
6d627b6725 Fixed that schema changes while the database was open would break any connections to a SQLite database (now we reconnect if that error is throw) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3998 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 06:09:57 +00:00
David Heinemeier Hansson
df62dea1ff Fixed that schema changes while the database was open would break any connections to a SQLite database (now we reconnect if that error is throw) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3997 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 06:05:16 +00:00
David Heinemeier Hansson
f340df798e Clearing doesnt need migrations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3996 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 05:49:19 +00:00
Rick Olson
30c42b21b3 Replaced old session rake tasks with db:sessions:create to generate a migration, and db:sessions:clear to remove sessions. [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3995 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 05:45:22 +00:00
David Heinemeier Hansson
6d7335752a Comments, comments
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3994 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 05:40:42 +00:00
David Heinemeier Hansson
faecde0ec8 My beautiful eyes [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3993 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 05:39:13 +00:00
David Heinemeier Hansson
6f8c99fa34 Update docs and index.html [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3992 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 05:14:28 +00:00
David Heinemeier Hansson
eedd9d7604 Updated Kernel#returning for the AP performance patch [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3991 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 04:37:32 +00:00
Rick Olson
a4f1262ac5 fix usage of #returning in ActionController::Base
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3990 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 04:33:13 +00:00