Jeremy Kemper
9de738aadc
Remove the unused, slow response_dump and session_dump variables from error pages. References #1222 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3060 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-16 21:34:24 +00:00
Jeremy Kemper
8da9d02e6e
Include QUOTED_TYPE constant in ActionPack AR assertions tests.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3059 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-16 09:09:04 +00:00
Jeremy Kemper
ba942dfc45
fewer objects, no loop in convert_content_type. Closes #2883 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3058 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-16 09:05:04 +00:00
Jeremy Kemper
c63f3bdc7a
Inline commonly-called template presence checks. Closes #2882 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-16 09:03:00 +00:00
Jeremy Kemper
ede505592c
Avoid logging code if logger is nil. Closes #2881 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3056 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-16 09:00:23 +00:00
Jeremy Kemper
eb1dd6a206
Use Set instead of Array to speed up prototype helper include? calls. Closes #2880 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3055 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-16 08:53:26 +00:00
Jeremy Kemper
745ea39926
MemCache store may be given multiple addresses. Closes #2869 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3054 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-16 08:35:31 +00:00
Jeremy Kemper
4cd8910279
r3118@asus: jeremy | 2005-11-16 00:32:48 -0800
...
correct prefetch_primary_key? table_name param
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3053 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-16 08:33:51 +00:00
Jeremy Kemper
9cb02c5317
r3116@asus: jeremy | 2005-11-16 00:17:06 -0800
...
Introducing the Firebird adapter. Closes #1874 .
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3052 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-16 08:18:13 +00:00
Jeremy Kemper
2076dca63f
r3095@asus: jeremy | 2005-11-15 22:40:51 -0800
...
Ticket #1874 - Firebird adapter
r3107@asus: jeremy | 2005-11-16 00:06:14 -0800
quote column aliases
r3108@asus: jeremy | 2005-11-16 00:08:12 -0800
quote columns in construct_conditions_from_arguments. update sequence_name docs. introduce prefetched primary keys.
r3109@asus: jeremy | 2005-11-16 00:09:08 -0800
double-quote rather than single-quote sqlite columns
r3110@asus: jeremy | 2005-11-16 00:09:56 -0800
quote column names and use attribute_condition in validates_uniqueness_of
r3111@asus: jeremy | 2005-11-16 00:12:24 -0800
Use QUOTED_TYPE constant in tests
r3112@asus: jeremy | 2005-11-16 00:13:28 -0800
restrict test_inserts_with_pre_and_suffix to those adapters which support migrations
r3113@asus: jeremy | 2005-11-16 00:14:09 -0800
Use QUOTED_TYPE constant in tests
r3114@asus: jeremy | 2005-11-16 00:14:30 -0800
Use QUOTED_TYPE constant in tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3051 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-16 08:16:54 +00:00
Nicholas Seckar
1cc8ab865f
Change Inflector#constantize to use eval instead of const_get
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3049 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-16 00:56:16 +00:00
Jeremy Kemper
c98011bc32
SQLServer: active? and reconnect! methods for handling stale connections. References #428 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3045 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-15 15:58:36 +00:00
Jeremy Kemper
e7b65b590a
SQLServer: active? and reconnect! methods for handling stale connections. References #428 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3044 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-15 11:35:14 +00:00
Jeremy Kemper
3441dfdb12
Associations handle case-equality more consistently: item.parts.is_a?(Array) and item.parts === Array. Closes #1345 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3043 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-15 10:48:32 +00:00
Jeremy Kemper
4f4aa4a13b
Mention app/apis and db directories in README. Closes #1616 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3042 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-15 09:49:33 +00:00
Jeremy Kemper
05d580dffa
Remove invalid links in ActionView::Helpers::UrlHelper documentation. Closes #1961 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3041 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-15 09:42:32 +00:00
Jeremy Kemper
f2ee215bec
Stricter matching for implicitly multipart filenames excludes files ending in unsupported extensions (such as foo.rhtml.bak) and without a two-part content type (such as foo.text.rhtml or foo.text.really.plain.rhtml). Closes #2398 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3040 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-15 08:36:38 +00:00
Jeremy Kemper
08fd13d17c
Handle cookie parsing irregularity for certain Nokia phones. Closes #2530 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3039 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-15 07:51:09 +00:00
Sam Stephenson
d99ed9bd6a
Refactored JavaScriptHelper into PrototypeHelper and ScriptaculousHelper. Added PrototypeHelper::JavaScriptGenerator and PrototypeHelper#update_page for easily modifying multiple elements in an Ajax response.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3036 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-14 22:28:47 +00:00
Jeremy Kemper
fb1efcaf91
SQLServer: insert uses given primary key value if not nil rather than SELECT @@IDENTITY. References #2866 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3035 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-14 22:24:55 +00:00
Thomas Fuchs
415d27490f
Update trunk to latests script.aculo.us
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3033 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-14 20:49:10 +00:00
Tobias Lütke
037f61c8e9
* Updated docs for in_place_editor, fixes a couple bugs and offers extended support for external controls [Justin Palmer] closes #2870
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3032 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-14 20:46:32 +00:00
Jeremy Kemper
92045be6b3
Oracle: active? and reconnect! methods for handling stale connections. Optionally retry queries after reconnect. References #428 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3025 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-14 10:01:09 +00:00
Jeremy Kemper
9a2de028dc
Fix reconnect success rate to report as percentage. References #428 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3024 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-14 09:58:18 +00:00
Jeremy Kemper
090bfcec60
Correct documentation for Base.delete_all. References #1568 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3021 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-14 07:41:17 +00:00
Jeremy Kemper
d28e9aef5f
Oracle: test case for column default parsing. References #2788 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3019 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-14 04:51:54 +00:00
Jeremy Kemper
d8f5ccab1c
Update documentation for Migrations. References #2861 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3017 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-14 03:51:39 +00:00
Jeremy Kemper
5cd2f32697
Update documentation for render :file. References #2858 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3015 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-14 00:12:46 +00:00
Jeremy Kemper
da2d4d6d57
Note that the ruby-memcache bindings are required to use the memcache store.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3013 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-14 00:08:24 +00:00
Jeremy Kemper
ffc4663218
Update CHANGELOG with more details. References #2842 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3012 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 23:39:52 +00:00
Jeremy Kemper
9318131e05
Eliminate Subversion dependencies in scripts/plugin. Correct install options. Introduce --force option to reinstall a plugin. Closes #2842 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3011 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 23:35:19 +00:00
Jeremy Kemper
6201679f1a
Reapply [2942] which was elided by [2997]. References #2788 . References #2848 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3009 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 22:46:14 +00:00
Jeremy Kemper
44ca6f4b62
Only include builtin filters whose filenames match /^[a-z][a-z_]*_helper.rb$/ to avoid including operating system metadata such as ._foo_helper.rb. References #2855 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3007 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 22:21:19 +00:00
David Heinemeier Hansson
b0c23e589f
hidden_field can also be in fields_for
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3006 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 12:54:00 +00:00
David Heinemeier Hansson
c6435b77de
Make form_for work with additional options
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3005 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 12:53:03 +00:00
David Heinemeier Hansson
0306127bb5
Show with local vars
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3004 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 11:14:12 +00:00
David Heinemeier Hansson
947cec29d5
Added FormHelper#form_for and FormHelper#fields_for that makes it easier to work with forms for single objects also if they don't reside in instance variables [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3003 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 11:13:11 +00:00
Jeremy Kemper
4a5b042fc7
r3046@asus: jeremy | 2005-11-13 02:31:21 -0800
...
AbstractAdapter#reconnect_if_inactive! returns boolean success. AbstractAdapter#log alters exception message on reconnect failure rather than raising ConnectionFailed.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3002 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 10:32:17 +00:00
Jeremy Kemper
680e4742be
r3042@asus: jeremy | 2005-11-13 01:51:08 -0800
...
MySQL active? and reconnect! References #428 .
r3043@asus: jeremy | 2005-11-13 01:58:28 -0800
SQLite active? and reconnect! References #428 .
r3044@asus: jeremy | 2005-11-13 02:02:27 -0800
Update CHANGELOG with admonishment regarding avoidance of the log method.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3001 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 10:03:03 +00:00
Jeremy Kemper
44b64704dd
r3032@asus: jeremy | 2005-11-12 23:16:52 -0800
...
Ticket 428 - stale connections
r3040@asus: jeremy | 2005-11-13 00:22:29 -0800
When AbstractAdapter#log rescues an exception, attempt to detect and reconnect to an inactive database connection. Connection adapter must respond to the active? and reconnect! instance methods. Initial support for PostgreSQL. References #428 .
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3000 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 08:23:07 +00:00
Jeremy Kemper
a762939894
PostgreSQL: last_insert_id uses select_value rather than using @connection.exec directly.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2998 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 08:09:37 +00:00
Jeremy Kemper
068d9ef0ef
Much faster Oracle column reflection. References #2848 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2996 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 07:24:50 +00:00
Jeremy Kemper
077ae340e8
r4331@asus: jeremy | 2005-11-12 17:03:45 -0800
...
PostgreSQL: default_sequence_name falls back to 'id' pk if both the given pk and discovered pk are nil.
r4336@asus: jeremy | 2005-11-12 22:31:39 -0800
PostgreSQL: correct the sequence discovery fallback query. References #2594 .
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2994 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 06:32:54 +00:00
Jeremy Kemper
d685e2cf18
SQLite: the clone_structure_to_test and purge_test_database Rake tasks should always use the test environment. Reference #2846 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2992 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 02:50:42 +00:00
Jeremy Kemper
91853b8a0d
SQLite: the clone_structure_to_test Rake task should always use the test environment. References #2846 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2990 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 01:12:48 +00:00
Jeremy Kemper
54dfb29151
PostgreSQL: min_messages = warning for AR tests.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2989 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-12 22:28:38 +00:00
David Heinemeier Hansson
9e0642a4ac
Pulled auto-starting browser: More pain than gain
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2987 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-12 16:26:23 +00:00
Jeremy Kemper
7c8f3edc99
r4325@asus: jeremy | 2005-11-12 03:57:46 -0800
...
PostgreSQL: correctly discover custom primary key sequences. PostgreSQL: smarter sequence name defaults, stricter last_insert_id, warn on pk without sequence. Base.reset_sequence_name analogous to reset_table_name (mostly useful for testing). Base.define_attr_method allows nil values. References #2594 .
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2985 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-12 11:59:54 +00:00
Jamis Buck
7321a41e1b
Make Validations#create! use the current scope
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2984 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-12 05:09:05 +00:00
Jeremy Kemper
047c75fa06
SQLServer: don't report limits for unsupported field types. Closes #2835 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2982 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-11 23:45:02 +00:00