Commit Graph

869 Commits

Author SHA1 Message Date
Jeremy Kemper
d6785e9674 Fix indentation in model generator migration template. Closes #8577 [Josh Peek]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6939 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-06-05 03:34:56 +00:00
Jeremy Kemper
6204a52fac Sexy migrations for the session_migration generator. Closes #8561.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6938 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-06-05 02:42:57 +00:00
Jeremy Kemper
a1c88273f4 Skip databases that couldn't be created.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6900 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-30 05:39:49 +00:00
Jeremy Kemper
3cf2c63eee Console reload! runs to_prepare callbacks also. Closes #8393.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6897 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-29 21:44:35 +00:00
Jeremy Kemper
20fa105c35 Wordsmith generator USAGEs.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6884 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-29 02:07:08 +00:00
Jeremy Kemper
06744bb4c5 Generated migrations include timestamps by default. Closes #8501.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6883 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-29 00:11:56 +00:00
Jeremy Kemper
2aed78d270 Add Active Resource to rails:freeze:edge and drop Action Web Service. Closes #8205.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6872 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-27 22:21:20 +00:00
Jeremy Kemper
2c7715a0cf Remove unused resource generator templates obviated by [6841]. Closes #8487 [shane]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6870 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-27 19:10:08 +00:00
Jeremy Kemper
e2ad603f52 Normalize whitespace. Closes #8385 [Time Pope]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6869 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-27 18:44:33 +00:00
Jeremy Kemper
26f88892a9 SQLite: db:create and drop
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6853 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-26 00:39:18 +00:00
Jeremy Kemper
1f03c5111d Add db:create, drop, reset, charset, and collation tasks. Closes #8448.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6849 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-26 00:24:58 +00:00
Jeremy Kemper
0cbb75e9a0 Also remove the duplicated unit test template. References #7222.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6841 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-25 21:16:38 +00:00
Jeremy Kemper
b0b5ee958a Scaffold generator depends on model generator instead of duplicating it. Closes #7222.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6840 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-25 21:15:46 +00:00
Jeremy Kemper
74265b6501 Missed commit from [6833]. References #8456.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6839 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-25 21:14:32 +00:00
Jeremy Kemper
da7f9f516a Scaffold generator tests. Closes #8443.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6824 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-23 22:42:24 +00:00
Jeremy Kemper
f78a1948d2 Don't load observers if Active Record isn't loaded.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6819 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-23 07:05:51 +00:00
Tobias Lütke
4611d0e108 Initializers are now loaded consistently sorted by name. Closes #8343
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6809 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-22 19:09:32 +00:00
Jeremy Kemper
43cd97e7fa Generated scaffold functional tests use assert_difference. Closes #8421.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6808 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-22 09:41:28 +00:00
Jeremy Kemper
7232cb705a Fix USAGE typo in resource generator. Closes #8406.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6795 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-20 23:25:18 +00:00
David Heinemeier Hansson
249d55e684 We changed name to scaffold
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6768 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-18 14:37:44 +00:00
David Heinemeier Hansson
18326e3526 We dont use semicolon any more
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6767 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-18 14:30:01 +00:00
David Heinemeier Hansson
4d2b297158 A few more fixes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-17 20:23:38 +00:00
David Heinemeier Hansson
40486288ef Updated with the latest tricks
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6747 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-16 01:31:32 +00:00
David Heinemeier Hansson
056fdc74d5 Scaffold resource is now scaffold
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6746 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-16 01:24:25 +00:00
David Heinemeier Hansson
4f2a950ce2 Make way for the new and improved scaffold
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6745 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-16 01:23:34 +00:00
Jeremy Kemper
c7befb896e Generators use *.html.erb view template naming. Closes #8278.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6690 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-06 10:34:18 +00:00
David Heinemeier Hansson
4cbbebb1c3 Added short-hand declaration style to migrations (inspiration from Sexy Migrations, http://errtheblog.com/post/2381) [DHH] Updated resource_scaffold and model generators to use short-hand style migrations [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6667 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-06 01:48:19 +00:00
David Heinemeier Hansson
0dc7038309 You're dead! We killed you!
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6632 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-29 14:16:19 +00:00
Nicholas Seckar
4ef9ad8653 Updated initializer to only load #{RAILS_ENV}.rb once. Added deprecation warning for config.breakpoint_server.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6627 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-29 07:35:22 +00:00
David Heinemeier Hansson
1162c29e30 Start in irb mode if possible
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6623 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-29 01:35:33 +00:00
David Heinemeier Hansson
70ac560e42 Removed breakpointer and Binding.of_caller in favor of relying on ruby-debug by Kent Sibilev since the breakpointer has been broken since Ruby 1.8.4 and will not be coming back [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6611 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-28 15:57:29 +00:00
Jeremy Kemper
baba45d689 Resource scaffolding returns the created entity.to_xml.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6580 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-25 22:08:07 +00:00
Jeremy Kemper
9ff19d89b9 Resource scaffolding responds to new.xml. Closes #8185.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6579 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-25 21:10:27 +00:00
David Heinemeier Hansson
3022a44bce Don't require AWS test_invoke in railties test helper [blaine]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6575 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-24 22:19:31 +00:00
Thomas Fuchs
fe218684d5 Include Active Resource in rails:freeze:edge rake task
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6567 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-24 09:15:20 +00:00
David Heinemeier Hansson
df41c7cb61 Include Active Resource instead of Action Web Service [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6550 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-23 18:55:54 +00:00
David Heinemeier Hansson
635c7f43dd Run with the latest versions so beta gems will work
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6548 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-21 17:06:16 +00:00
Tobias Lütke
7722e2bf6c Introduce RELATIVE_RAILS_ROOT and changed spawner script to use it. Prior to this change spawner would assume the non symlinked deploy directory which made reaper reload the wrong code after further deployments.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6531 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-16 21:55:59 +00:00
Jeremy Kemper
d699084f7a script/console quotes RAILS_ROOT in irb command line so it works with spaces in the path. Closes #7955.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6512 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-09 17:34:24 +00:00
Jeremy Kemper
29d63a04ac Canonicalize configuration.root_path and replace RAILS_ROOT.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6488 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-03-29 05:44:44 +00:00
Rick Olson
2a305949d7 documentation project patches, closes #7342, #7319, #7316, #7190 [jeremymcanally]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6470 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-03-27 14:04:06 +00:00
Jeremy Kemper
2632664f64 Deprecation: remove components from controller paths. Canonicalize RAILS_ROOT by using File.expand_path on Windows, which doesn't have to worry about symlinks, and Pathname#realpath elsewhere, which respects symlinks in relative paths but is incompatible with Windows. Closes #6755.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6445 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-03-18 13:35:16 +00:00
Nicholas Seckar
8a9496cb4e Add environment variable RAILS_DEFAULT_DATABASE, which allows the builtin default of 'mysql' to be overridden.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6429 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-03-14 23:45:17 +00:00
Jeremy Kemper
8dfe5b78fa Windows: include MinGW in RUBY_PLATFORM check. Closes #2982.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6344 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-03-06 09:22:07 +00:00
Jeremy Kemper
f1e08b351d Improve dispatcher failsafe responses. Beef up compatibility with Mongrel's CGI wrapper.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6307 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-03-04 12:31:21 +00:00
Marcel Molina
a7b90b7cdd Move plugin classes into the rails directory to match their namespace
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6293 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-03-03 04:50:56 +00:00
Marcel Molina
9f53e09eb9 Move responsibility for ensuring that all registered gems were loaded from the FileSystemLocator into the Initializer once all locators have had a chance to load the gems they located. [Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6292 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-03-03 02:53:06 +00:00
Marcel Molina
3d2c232d21 Use to_sentence rather than inspect when reporting which registered plugins are missing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6291 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-03-02 23:45:52 +00:00
Marcel Molina
15c466dd72 Split out the basic plugin locator functionality into an abstract super class. Add a FileSystemLocator to do the job of checking the plugin_paths for plugins. Add plugin_locators configuration option which will iterate over the set of plugin locators and load each of the plugin loaders they return. Rename locater everywhere to locator. [Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6290 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-03-02 23:39:29 +00:00
Marcel Molina
b0e1430c52 Split plugin location and loading out of the initializer and into a new Plugin namespace, which includes Plugin::Locater and Plugin::Loader. The loader class that is used can be customized using the config.plugin_loader option. Those monkey patching the plugin loading subsystem take note, the internals changing here will likely break your modifications. The good news is that it should be substantially easier to hook into the plugin locating and loading process now. [Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6277 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-03-02 00:20:32 +00:00
Rick Olson
88876163f9 boot.rb sets RAILS_ROOT, so remove that. Install http plugins inside a Dir.chdir block so that the cwd doesn't change
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-27 03:15:44 +00:00
Rick Olson
81ae38580b set the RAILS_ROOT for script/plugin if it's not set already
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6247 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-27 02:59:28 +00:00
David Heinemeier Hansson
34f1413b48 Added assumption that all plugin creators desire to be sharing individuals and release their work under the MIT license [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6244 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-27 01:23:43 +00:00
David Heinemeier Hansson
ee2b5dda80 Added source-annotations extractor tasks to rake [Jamis Buck]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6229 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-25 19:40:37 +00:00
Rick Olson
ad9bacb189 fix app generator
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-24 22:36:52 +00:00
David Heinemeier Hansson
7bf757d8b8 Include two default initializers as examples
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-23 00:53:22 +00:00
David Heinemeier Hansson
c6d6082562 Added config/initializers where all ruby files within it are automatically loaded after the Rails configuration is done, so you don't have to litter the environment.rb file with a ton of mixed stuff [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6212 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-23 00:32:27 +00:00
Jeremy Kemper
45dd256889 Missed commit for [6184]. Generate a random secret for new app's cookie session store.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-21 23:13:32 +00:00
David Heinemeier Hansson
21187c0fb4 Apply the rest of Chads patch
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-21 00:29:44 +00:00
Michael Koziarski
89cb34c9cf Stop swallowing errors during rake test [Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-20 03:15:26 +00:00
Rick Olson
38e5d21bc4 Fix Rails::Initializer since #view_paths is never nil
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6127 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-04 22:56:36 +00:00
Rick Olson
f2f2686f97 Update Rails Initializer to use ActionController::Base#view_paths [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6126 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-04 22:41:37 +00:00
David Heinemeier Hansson
8f614a80e7 Fix gem deprecation warnings, which also means depending on RubyGems 0.9.0+ [Chad Fowler]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6119 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-04 20:44:45 +00:00
Jeremy Kemper
aa7859c976 Plugins may be symlinked in vendor/plugins. Closes #4245.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6101 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-01 20:12:36 +00:00
Jeremy Kemper
5224b62ae3 Resource generator depends on the model generator rather than duplicating it. Closes #7269.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6069 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-01-28 13:55:39 +00:00
Rick Olson
37fa17f55a Add/Update usage documentation for script/destroy, resource generator and scaffold_resource generator. Closes #7092, #7271, #7267. [bscofield]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6016 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-01-23 05:01:05 +00:00
Jeremy Kemper
47f99584b3 Generator: use destination path for diff tempfiles. Closes #7015.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5914 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-01-13 04:09:18 +00:00
David Heinemeier Hansson
73499158df Fixed that webrick would strip leading newlines and hang connection (closes #4156) [psross]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5847 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-01-05 04:09:38 +00:00
Rick Olson
5cf118b138 Ensure plugins are in the Dependencies.load_once_paths collection by default. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5801 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-27 22:18:38 +00:00
David Heinemeier Hansson
014fdde93a Attempt at fixing the preparation_callbacks, nzkoz will double check
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5794 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-27 00:43:27 +00:00
Michael Koziarski
c6d47806bf Allow config.to_prepare to work, make the dispatcher safe to 're require'. [Koz, Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5792 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-26 23:56:00 +00:00
Rick Olson
29ec023add Fix scaffold_resource generator so it respects the --pretend argument when creating the routes file. Closes #6852 [fearoffish]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5790 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-26 19:39:30 +00:00
Rick Olson
c6b4c8d240 Fix Webrick Daemon dispatching bug regarding a bad current working directory. Closes #4899 [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5784 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-25 09:01:41 +00:00
Michael Koziarski
507445862e Reapply plugin load path changes from [5720]
Closes #6842
Closes #6851


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5738 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-18 20:27:05 +00:00
Michael Koziarski
23c2768421 Revert [5720]
Reopens #6581
Reopens #6842


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5722 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-16 02:22:23 +00:00
Michael Koziarski
39686e5370 Make config.plugins affect $LOAD_PATH and remove duplication from $LOAD_PATH [James Adam]
Closes #6581
Closes #6842



git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5720 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-15 23:41:58 +00:00
Jeremy Kemper
a50fc11583 Rewrap scaffold_resource USAGE so it displays nicely on most terminals. Closes #6801 [Paul Smith]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5707 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-08 22:47:46 +00:00
Jeremy Kemper
ee384b8981 Missed commit from [5686].
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5691 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-06 22:08:59 +00:00
David Heinemeier Hansson
56267474da Fixed script/process/spawner to work properly with Mongrel including in -r (daemonize mode) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5672 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-04 03:50:57 +00:00
David Heinemeier Hansson
db459370f8 Documentation for generators (closes #6671) [topfunky]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-03 16:53:16 +00:00
David Heinemeier Hansson
1ac4470da5 Wups
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5662 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-01 23:02:48 +00:00
David Heinemeier Hansson
2e2bf2d149 If only life was that simple (it didnt help)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5658 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-01 05:56:51 +00:00
David Heinemeier Hansson
e8eb743ba6 Replace the elaborate reloading connection checking scheme, just fix the Ruby-based MySQL adapter, ye?
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5656 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-01 05:37:56 +00:00
David Heinemeier Hansson
9040f40682 Added one-letter aliases for the three default environments to script/console, so script/console p will load the production environment (t for test, d for development) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5655 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-01 00:08:33 +00:00
David Heinemeier Hansson
cd2be89b7c Refactored to use same option setup
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5654 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-30 22:22:02 +00:00
David Heinemeier Hansson
8dca6586de Fixed that script/server running against Mongrel should tail the proper log regardless of the environment [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-30 21:45:31 +00:00
Michael Koziarski
02dfb239fa merge 5639 to trunk
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5640 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-27 05:19:15 +00:00
David Heinemeier Hansson
0a86122a24 Only reload connections in development mode that supports (and requires that) -- in other words, only do it for SQLite (closes #6687, #6700) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5637 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-26 22:10:55 +00:00
David Heinemeier Hansson
2d1169ad16 redirect_to is the one place where _url should be used, not _path [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5633 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-26 04:42:13 +00:00
David Heinemeier Hansson
619e5c29f4 Tried delaying database disconnect until after dependency resolution (references #6687, #6700) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5627 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-25 19:59:00 +00:00
Nicholas Seckar
cf248eae1f Update initializer to load Rails::VERSION as soon as possible. Closes #6698.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-25 17:11:46 +00:00
David Heinemeier Hansson
a02dbe0a3d Added ActiveRecord::Base.clear_active_connections! in development mode so the database connection is not carried over from request to request. Some databases won't reread the schema if that doesn't happen (I'm looking at you SQLite), so you have to restart the server after each migration (= no fun) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5618 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-23 05:16:46 +00:00
David Heinemeier Hansson
3805c12a80 Dont include the mime.yml anyway, Mongrel will just ship with more defaults instead
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5612 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-23 02:41:59 +00:00
David Heinemeier Hansson
44de099efe Restore windows compatibility
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5577 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-19 22:17:26 +00:00
David Heinemeier Hansson
f24ed3bf6d Starting, not started yet
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5576 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-19 21:54:48 +00:00
David Heinemeier Hansson
ee8121fc76 Make script/server work with -d and -e on Mongrel
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5575 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-19 21:52:14 +00:00
Rick Olson
5999fdd3f3 Use custom mime file for script/server mongrel if config/mime.yml exists. Pass --mime=other/path for a custom mime file. [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5572 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-19 21:12:22 +00:00
Rick Olson
ca2d704c75 Add custom mime type file for mongrel. config/mime.yml is added with generated apps from the rails command. [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5571 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-19 21:01:25 +00:00
David Heinemeier Hansson
bc6f0d2f30 Scaffold resource should have both a layout and a stylesheet [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5565 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-19 16:57:33 +00:00
Tobias Lütke
a64c6af57c Make sure that exceptions which are thrown outside of the user code try their best to be handeled in ApplicationController#rescue_action.
This allos handling of ActionController::RoutingError which were previously always handeled by ActionController#Base


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5516 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-13 20:23:00 +00:00
Jeremy Kemper
45fd631e5e Rails::VERSION::STRING on trunk is 1.2.0
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5507 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-13 07:13:41 +00:00
Jeremy Kemper
277c1a803e Rails::VERSION::STRING should always be available. Closes #6244.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5506 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-13 06:23:58 +00:00
Jamis Buck
da3eae4922 Add grep-based fallback to reaper, so it can work in pidless setups (again)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5488 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-11 22:46:00 +00:00
Jeremy Kemper
2a92995d2a Only wrap request processing with our USR1 signal handler so FastCGI can trap it and raise an exception while waiting for connections. Idle processes exit immediately rather than waiting for another request; active processes gracefully exit when the request is finished.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5485 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-11 08:08:53 +00:00
Nicholas Seckar
d3100ec855 Alter prior change to use require_dependency instead of require_or_load. Causes ApplicationController to be reloaded again. Closes #6587.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5471 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-09 18:22:44 +00:00
Jeremy Kemper
089d3ec318 Rake: use absolute paths to load lib and vendor tasks so they may be run outside of RAILS_ROOT. Closes #6584.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5469 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-09 07:56:10 +00:00
Nicholas Seckar
e51112c15d Remove temporary crutch to help ApplicationController be unloaded. Closes #6496.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5454 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-07 19:52:27 +00:00
Jeremy Kemper
2fc9b55bd3 scaffold_resource generator uses _path named routes and head instead of render :nothing => true. Closes #6545.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5427 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-05 02:14:36 +00:00
Scott Barron
ceb3859672 Turns out call_stack slows down the entire app, so just warn that breakpoints
don't work with 1.8.5 for now.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5424 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-03 18:20:53 +00:00
Scott Barron
2dd98cfe8c umm ... who left that there
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-02 18:37:38 +00:00
Jeremy Kemper
868d9f5a2c Generator can show diff on file collision to help you decide whether to skip or overwrite. Closes #6364.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5397 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-02 08:36:41 +00:00
Jeremy Kemper
4bd64363c1 Generated directories are recursively svn added, like mkdir -p. Closes #6416.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-02 07:55:04 +00:00
Scott Barron
61bcbfbb9c Little better formatting of this string.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5393 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-02 05:00:35 +00:00
Scott Barron
fa58808d08 Don't do call_stack warning all the time, only if a breakpoint is used.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5392 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-02 04:59:13 +00:00
Scott Barron
c1c96d55d7 If using Ruby 1.8.5, pull in call_stack so breakpointer works again.
If using Ruby 1.8.5 and call_stack is not installed, give warnings and
instructions.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5380 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-01 17:49:02 +00:00
Jeremy Kemper
c5dcec789e resource and scaffold_resource generators add a restful route to config/routes.rb
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5379 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-01 01:57:06 +00:00
Michael Koziarski
e808315725 Clean up the output of rake stats, de-emphasise components and apis, and remove the indents for tests [Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5369 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-27 01:26:11 +00:00
David Heinemeier Hansson
464102d551 Added option to script/process/spawner of specifying the binding address #5133 [zsombor]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5367 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-26 16:59:35 +00:00
David Heinemeier Hansson
b9ffbd3166 Fix scaffolding from using deprecated :post => true (closes #6499)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5366 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-26 15:56:48 +00:00
Michael Koziarski
0c94868f67 Update scaffold to use new form_tag block functionality. Closes #6480 [BobSilva]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5351 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-24 07:16:16 +00:00
Jeremy Kemper
18e2188f5d Plugin generator: check for class collisions. Closes #4833.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5342 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-23 19:22:01 +00:00
Jeremy Kemper
1742d0d707 mailer unit test handles nested fixture paths
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-20 19:33:14 +00:00
Jeremy Kemper
ef8f41dc68 reference view path in fixture
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5328 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-20 19:18:56 +00:00
Jeremy Kemper
8cbe2fed54 .rhtml extension for view only
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5327 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-20 19:17:02 +00:00
Jeremy Kemper
ba74754c4f Mailer generator: handle mailers in modules, set mime_version in unit test.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5326 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-20 19:06:07 +00:00
Michael Koziarski
301f721ef8 Default $KCODE to 'u' to enable the multibyte-safe chars proxy. [Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5319 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-17 23:11:47 +00:00
David Heinemeier Hansson
c1a52510ea Added config.plugins to control which plugins are loaded #6269 [skaes]. By default, everything in vendor/plugins will be loaded, but if you specify config.plugins, only those will be loaded.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5317 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-17 20:27:03 +00:00
Nicholas Seckar
d1ae92eeb2 Remove extraneous expand_path; fix plugin load paths
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5313 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-16 18:29:31 +00:00
Nicholas Seckar
25b5161e16 Add plugins and builtins to the load_path.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-16 18:19:21 +00:00
Nicholas Seckar
64c7bf7481 Remove autoload_paths to simplify configuration.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5311 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-16 18:12:01 +00:00
Jeremy Kemper
419226fe11 PostgreSQL: db:test:purge closes open database connections first. Closes #6236.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5269 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-09 06:34:57 +00:00
David Heinemeier Hansson
ccd32adeca Fixed test:uncommitted on Windows (backslash issue) (closes #4999) [paul@paulbutcher.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5263 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-09 02:23:03 +00:00
David Heinemeier Hansson
a21e86f023 Fixed migration creation to work with namespaced models, so script/generate model Gallery::Image will use create_table :gallery_images #6327 [BobSilva]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5261 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-09 02:19:58 +00:00
David Heinemeier Hansson
f1a2dee976 Include field:type option for models
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-09 00:11:46 +00:00
David Heinemeier Hansson
c16a4379ca Added script/generate resource which works just like scaffold_resource, but creates empty placeholders instead of predefined [DHH] Added generated attribute options to script/generate model, like the one found in scaffold_resource and resource [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-09 00:08:13 +00:00
David Heinemeier Hansson
5728b82c01 Added proper USAGE to the scaffold_resource generator [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5235 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-08 23:35:00 +00:00
David Heinemeier Hansson
c447d443dd Added proper USAGE to the scaffold_resource generator [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5234 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-08 23:32:07 +00:00
Jeremy Kemper
3c877ecd8a Use the first unparsed argument as the code or file to run. Closes #6286.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5203 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-29 07:45:08 +00:00
Jeremy Kemper
43c4d3002d script/runner can run files, pass on arguments, and be used as a shebang. Closes #6286.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5189 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-26 07:10:08 +00:00
Jeremy Kemper
e5a0a27327 scaffold_resource naming, fixes #6276
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5182 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-25 06:51:03 +00:00
Jeremy Kemper
b96fbe81b8 Look for rake tasks in plugin subdirs. Closes #6259.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-22 00:03:05 +00:00
David Heinemeier Hansson
a292cd3222 Implemented ./script/generate scaffold_resource comment body:text created_at:datetime active:boolean price:decimal
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5147 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-19 08:47:31 +00:00
David Heinemeier Hansson
8f2221da85 Work-in-progress scaffolder for resources [DHH/Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5132 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-17 22:20:18 +00:00
Jeremy Kemper
d54406271b session_migration generator adds an index on updated_at. Closes #6207.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5105 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-13 23:35:55 +00:00
Jeremy Kemper
9aeddc5538 script/server creates the tmp/pids directory. Closes #6204.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5103 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-13 23:25:02 +00:00
Jeremy Kemper
3c0e7b1b51 Fix script/console --sandbox for internal transactions changes. Closes #5738.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5088 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-12 01:17:11 +00:00
Nicholas Seckar
e3c2151f7f Remove the uncanny default of adding all app/models/*/ directories to the load path. References #6031.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5064 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-07 16:53:58 +00:00
David Heinemeier Hansson
d48322ecca Proper description syntax for test tasks (closes #5308)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5016 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-05 15:35:50 +00:00
Michael Koziarski
7466c1125c Formally deprecate the non-namespaced rake tasks. [Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4960 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-04 00:49:08 +00:00
David Heinemeier Hansson
fef2d880a5 Update copyright times
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4922 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-03 18:53:05 +00:00
Jeremy Kemper
f6339eb177 Thoroughly test the FCGI dispatcher. Closes #5970.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4913 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-03 00:18:31 +00:00
Rick Olson
03de0cfe7a Remove Dir.chdir in the Webrick DispatchServlet#initialize method. Fix bad path errors when trying to load config/routes.rb. [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4899 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-02 15:50:52 +00:00
Jeremy Kemper
12ff554cd4 Tighten rescue clauses. Closes #5985.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4885 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-31 03:16:28 +00:00
Jeremy Kemper
d2ceb17508 remove superfluous ABSOLUTE_RAILS_ROOT from webrick server
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4841 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-29 09:15:47 +00:00
Nicholas Seckar
68c9c93118 Update Initializer to use load_once_paths to avoid plugin reloading. References #5852.
Add Dependencies.load_once_paths.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4837 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-29 06:52:39 +00:00
Nicholas Seckar
5baf7462c7 Add controller_paths variable to Routing; Assign Routing.controller_paths from initializer; fix script/about and rails info controller.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4762 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-15 01:28:06 +00:00
Nicholas Seckar
30fa7053be Add silencing to deprecations; avoid self-scolding.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4760 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-14 18:15:44 +00:00
Rick Olson
651e57a72c Rearrange application resetting and preparation, fix bug with leaking subclasses hash in ActiveRecord::Base [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4742 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-09 16:52:42 +00:00
David Heinemeier Hansson
36dfeb9a36 Cause ApplicationController to be reloaded
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4741 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-09 16:50:27 +00:00
Rick Olson
af7a6e57cd Add missing mock directories from the autoload_paths configuration. [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4736 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-09 02:24:15 +00:00
Jeremy Kemper
e448b340ab Nested controller scaffolding also nests the generated layout.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-09 02:22:04 +00:00
Jamis Buck
e9b0284070 be sure to require_dependency on 'application', so that dependency loading is honored correctly
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4731 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-08 22:29:57 +00:00
Nicholas Seckar
74165eb6ac New dependencies implementation
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4728 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-08 21:21:04 +00:00
Rick Olson
c0657a9084 Fix Dispatcher.reset_application! so that AR subclasses are removed and Observers re-initialized *after* Reloadable classes are removed. Closes #5743. [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4716 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-07 17:00:03 +00:00
Marcel Molina
d63f6b9bdd Clarify usage of script/plugin source. Closes #5344. [james.adam@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4705 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-07 06:42:24 +00:00
David Heinemeier Hansson
678f8cbb70 Proper initialization
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4691 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-06 21:34:28 +00:00
Nicholas Seckar
71040173cb Remove requires from webrick server; they were causing dispatcher.rb to be double loaded.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4688 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-06 03:24:17 +00:00
Nicholas Seckar
c06467fc23 Move method
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4687 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-06 03:22:38 +00:00
Nicholas Seckar
cbc3afb878 Add Dispatcher.to_prepare and config.to_prepare to provide a pre-request hook.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4686 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-06 02:51:53 +00:00
Rick Olson
26eefd79a4 Tweak the Rails load order so observers are loaded after plugins, and reloaded in development mode. Closed #5279. [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4684 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-06 02:12:53 +00:00
David Heinemeier Hansson
900afae41b Added that you can change the web server port in config/lighttpd.conf from script/server --port/-p (closes #5465) [mats@imediatec.co.uk]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4676 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-05 22:11:24 +00:00
Jeremy Kemper
21cf3c6596 script/performance/profiler compatibility with the new ruby-prof, including an option to choose the results printer. Closes #5679.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4673 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-05 21:30:44 +00:00
David Heinemeier Hansson
5fd2fffcf6 Call an inspector for inspector
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4667 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-05 20:44:27 +00:00
Jeremy Kemper
c1c940feb7 ./script/generate usage. Closes #5721.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4662 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-05 01:34:01 +00:00
Rick Olson
2e88b5d37f Fixed the failsafe response so it uses either the current recognized controller or ApplicationController. [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4629 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-28 23:09:29 +00:00
Jamis Buck
fcd489b4c2 Make sure script/reaper only reaps dispatcher pids by default, and not the spawner's pid.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4614 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-18 17:48:06 +00:00
Rick Olson
9ac7afcf63 Fix script/plugin about so it uses about.yml and not meta.yml. [James Adam]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4612 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-17 19:17:50 +00:00
Jeremy Kemper
e34de4dc24 Firebird database tasks.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4597 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-09 00:36:49 +00:00
Jeremy Kemper
7231bfb59c Dispatcher processes rescued actions with the same controller that processed the request. Closes #4625.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4589 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-08 01:34:22 +00:00
Jeremy Kemper
0d33934542 rails -d frontbase to create a new project with a frontbase database.yml. Closes #4945.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4587 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-08 01:22:48 +00:00
Jeremy Kemper
9f3625dd0a Ensure the logger is initialized. Closes #5629.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4573 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-06 20:37:49 +00:00
David Heinemeier Hansson
117c70b6e7 Added Mongrel-spawning capabilities to script/process/spawner. Mongrel will be the default choice if installed, otherwise FCGI is tried [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4570 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-06 17:21:42 +00:00
Jeremy Kemper
fefe6591f6 Really, this time. References #5612.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4560 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-05 23:56:49 +00:00
Jeremy Kemper
68608e331f Update scaffolding functional tests to use :id => people(:first) instead of :id => 1. Closes #5612.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4559 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-05 23:48:27 +00:00
Jeremy Kemper
3398f74db1 db:test:clone should remove existing tables before reloading the schema. Closes #5607.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4557 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-05 18:35:06 +00:00
David Heinemeier Hansson
7e5dd2e124 Fixed migration generation for class names like ACLController (closes #5197) [brad@madriska.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4553 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-05 04:40:48 +00:00
David Heinemeier Hansson
06411f4261 Added show_source_list and show_call_stack to breakpoints to make it easier to get context (closes #5476) [takiuchi@drecom.co.jp]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4545 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-05 02:02:30 +00:00
Jeremy Kemper
64b7c5fbd1 Generate scaffold layout in subdirectory appropriate to its module nesting. Closes #5511.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4527 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-01 00:11:35 +00:00
Jeremy Kemper
141962348c script/server prefers mongrel over lighttpd
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4507 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-29 00:57:54 +00:00
Jeremy Kemper
0a072e8ed7 Mongrel: script/server tails the rails log like it does with lighttpd. Closes #5541.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4506 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-29 00:31:45 +00:00
Jeremy Kemper
ce458a74a5 Don't assume Active Record is available. Closes #5497.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4505 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-28 23:51:50 +00:00
Jeremy Kemper
0e146d54a7 Mongrel: script/server works on Win32. Closes #5499.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4504 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-28 23:41:29 +00:00
Nicholas Seckar
81a6a60dc6 Remove opts.on { |options[:option_name] } style hash assignment. Closes #4440.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4502 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-28 20:53:00 +00:00
Jeremy Kemper
8b89bd779a Mongrel support for script/server. Closes #5475.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4486 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-23 22:32:10 +00:00
Rick Olson
441bba8091 Remove some cruft from the framework:update:configs task and fix the documentation. Closes #5300. [jeremy@planetargon.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4475 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-21 02:11:59 +00:00
Jeremy Kemper
7a101c1fc3 Include rails -v / rails --version in app generator usage. Closes #5440.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4471 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-20 18:00:32 +00:00
Rick Olson
c638d9401b Fix script/plugin so it doesn't barf on invalid URLs [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4450 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-12 16:07:58 +00:00
Rick Olson
bdc1033d20 Fix plugin install bug at dir with space. (closes #5359) [Yoshimasa NIWA]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4449 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-11 17:17:32 +00:00
Rick Olson
cf6654318c Fix bug with 'script/plugin install' so it reports unknown plugin names correctly. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4447 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-09 02:08:26 +00:00
David Heinemeier Hansson
d3bb2e5236 Include uninstall.rb (closes #5003)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4440 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-06 15:44:11 +00:00