David Heinemeier Hansson
49c801b71d
Added :include as an option for association declarations [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2898 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-06 20:39:34 +00:00
David Heinemeier Hansson
89ec75edc9
Fixed missing join table fixtures
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2897 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-06 19:25:58 +00:00
David Heinemeier Hansson
da7752e590
Sharper example
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2896 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-06 19:07:09 +00:00
David Heinemeier Hansson
c8dd66fdcd
Made association extensions use simpler block syntax
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2895 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-06 19:05:42 +00:00
Jamis Buck
0073a759f1
Add documentation to assert_tag indicating that it only works with well-formed XHTML
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2894 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-06 13:59:07 +00:00
Jamis Buck
afe75566cc
Add a new test case to demonstrate that subject headers are being properly encoded for multipart messages
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2893 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-06 13:41:12 +00:00
David Heinemeier Hansson
37e2085ff1
Fail gracefully when plugin was not found [Chad Fowler]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2892 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-06 13:06:38 +00:00
Jeremy Kemper
51949c22f1
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2890 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-06 10:19:32 +00:00
Jeremy Kemper
a83e0cdec5
r2916@asus: jeremy | 2005-11-06 05:04:06 -0800
...
Rename conditions_scoping_test to method_scoping_test.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2889 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-06 10:19:28 +00:00
Jeremy Kemper
390e6d246c
r2915@asus: jeremy | 2005-11-06 05:02:53 -0800
...
Rename Base.constrain to Base.with_scope so it doesn't conflict with existing concept of database constraints. Make scoping more robust: uniform method => parameters, validated method names and supported finder parameters, raise exception on nested scopes.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2888 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-06 10:18:51 +00:00
David Heinemeier Hansson
6c5572701a
Fixed that SQL Server should ignore :size declarations on anything but integer and string in the agnostic schema representation ( closes #2756 ) [Ryan Tomayko]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2887 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-06 07:48:24 +00:00
David Heinemeier Hansson
c7da7a38d7
svn:externals is now an explicit option for script/plugin ( closes #2755 ) [Ryan Tomayko]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2886 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-06 07:23:58 +00:00
Sam Stephenson
d3275cadaa
Enable HTTP installation of plugins when svn isn't avaialable. Closes #2661 . [Chad Fowler]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2885 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-06 01:39:32 +00:00
Sam Stephenson
55fab64391
Move info.rb to rails_info.rb and load Rails::Info after initialization
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2884 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-05 18:04:52 +00:00
Sam Stephenson
71b032a0a6
Added script/about to display formatted Rails::Info output
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2883 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-05 14:30:47 +00:00
Sam Stephenson
1f6b09f67c
Added Rails::Info to catalog assorted information about a Rails application's environment
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2882 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-05 04:44:33 +00:00
Sam Stephenson
8a8b472fc2
Update changelog
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2881 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-05 03:04:41 +00:00
Sam Stephenson
313468a732
Added action_pack.rb stub so that ActionPack::Version loads properly
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2880 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-05 03:03:31 +00:00
Jeremy Kemper
8c4c196f56
Scaffold-generated controller action gives paginate the plural_ rather than singular_name. Closes #2743 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2879 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-05 02:59:58 +00:00
Jeremy Kemper
ad4e611488
Update paginator docs. Closes #2744 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2878 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-05 02:10:29 +00:00
Sam Stephenson
f35792974a
script/lighttpd: Detach and exit the forked process
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2877 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-04 21:54:49 +00:00
David Heinemeier Hansson
9d17e7cce4
Fix assert_no_tag
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2876 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-04 21:37:34 +00:00
Sam Stephenson
0c512ca990
script/lighttpd: tail the logfile when running in the foreground, and attempt to guess the port number
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2875 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-04 20:58:38 +00:00
David Heinemeier Hansson
a6106e4ec6
Added skip_before_filter/skip_after_filter for easier control of the filter chain in inheritance hierachies [DHH] Added short-hand to assert_tag so assert_tag :tag => "span" can be written as assert_tag "span" [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2873 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-04 19:42:22 +00:00
David Heinemeier Hansson
a5a82d978b
Added extension capabilities to has_many and has_and_belongs_to_many proxies [DHH] Added find_or_create_by_X as a second type of dynamic finder that'll create the record if it doesn't already exist [DHH] Added constrain scoping for creates using a hash of attributes bound to the :creation key [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2872 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-04 19:39:50 +00:00
Jeremy Kemper
4506a463e4
Omit internal dtproperties table from SQLServer table list. Closes #2729 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2869 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-04 06:01:03 +00:00
Jeremy Kemper
fad2aae72b
Don't reap the spawner or reaper scripts either. Closes #2727 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2868 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-04 05:55:11 +00:00
Jeremy Kemper
56ade75131
Explicitly require topic from reply fixture.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2867 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-04 05:46:28 +00:00
Jeremy Kemper
427300e08f
Quote column names in generated SQL. Closes #2728 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2866 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-04 01:49:10 +00:00
Jeremy Kemper
f482bd5018
Don't reap spawn-fcgi. Closes #2727 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2865 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-03 22:08:56 +00:00
Jeremy Kemper
189b7907d5
Correct the pure-Ruby MySQL 4.1.1 shim's version test. Closes #2718 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2864 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-03 21:17:32 +00:00
Jeremy Kemper
44d1420757
Add Model.create! to match existing model.save! method. When save! raises RecordInvalid, you can catch the exception, retrieve the invalid record (invalid_exception.record), and see its errors (invalid_exception.record.errors).
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2863 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-03 18:54:16 +00:00
Jeremy Kemper
e024f2f1bf
Correct fixture behavior when table name pluralization is off. Closes #2719 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2862 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-03 15:43:48 +00:00
David Heinemeier Hansson
8c512a1caf
Added extension capabilities to has_many and has_and_belongs_to_many proxies [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2861 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-03 09:06:42 +00:00
Jeremy Kemper
f109bfb765
Restore the fast Numeric#blank? Closes #2714 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2853 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-03 01:32:25 +00:00
Jeremy Kemper
26311f6cd0
Reaper knows how to find processes even if the dispatch path is very long. Closes #2711 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2851 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-02 22:05:45 +00:00
Jeremy Kemper
aabf9093a0
Correct reader method generation for primary key attribute: handle case when primary_key is defined but its column is nil, such as when the model class is backed by a view.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2850 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-02 17:30:59 +00:00
Jeremy Kemper
ac58ba60f6
Changed 0.blank? to false rather than true since it violates everyone's expectation of blankness. Closes #2518 , Closes #2705 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2849 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-02 15:37:58 +00:00
David Heinemeier Hansson
4f754985d0
Added redirect_to :back as a short-hand for redirect_to(request.env["HTTP_REFERER"])
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2848 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-02 14:47:03 +00:00
Jamis Buck
49cd52a93f
Make fcgi handler respond to TERM signals with an explicit exit
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2847 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-02 13:21:22 +00:00
David Heinemeier Hansson
a52132af58
Added demonstration of fixture use to the test case generated by the model generator [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2846 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-02 10:15:31 +00:00
Jeremy Kemper
f457ef46cf
If specified, pass PostgreSQL client character encoding to createdb. Closes #2703 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2843 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-02 03:30:15 +00:00
Jeremy Kemper
ddf6910941
ensure close_session in AC::Base#process
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2842 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-02 01:23:34 +00:00
Jeremy Kemper
1cfd25a774
Failsafe response handler for dispatcher.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2841 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-02 01:20:36 +00:00
Jeremy Kemper
b4b47e560e
Simplify gem search for :freeze_gems rake task.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2840 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-01 18:56:56 +00:00
Jeremy Kemper
144f78be41
Move Dispatcher.dispatch CGI.new out of default args and into rescuable block so the dispatcher catches its errors rather than the fcgi handler.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2839 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-01 18:29:41 +00:00
Jeremy Kemper
30b9d6d28a
The freeze_gems Rake task accepts the VERSION environment variable to decide which version of Rails to pull into vendor/rails.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2838 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-01 18:26:06 +00:00
Jeremy Kemper
c827b3f15c
A missing primary key column shouldn't raise an error when generating its error message.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2837 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-01 18:21:46 +00:00
Thomas Fuchs
d47f3bcbad
Change javascript_include_tag :defaults to not use script.aculo.us loader, which facilitates the use of plugins for future script.aculo.us and third party javascript extensions, and provide register_javascript_include_default for plugins to specify additional JavaScript files to load. Removed scriptaculous.js, slider.js and builder.js
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2835 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-01 06:34:40 +00:00
Florian Weber
d5859d0b17
Added that an DuplicateMigrationVersionError gets raised when multiple migrations have the same version number.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2832 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-31 15:43:02 +00:00