Commit Graph

857 Commits

Author SHA1 Message Date
David Heinemeier Hansson
3a90c31a56 Use accept headers
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3845 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-12 06:04:03 +00:00
Thomas Fuchs
130001c377 Update to latest script.aculo.us trunk, fixes possible issue with Effect.Appear on IE
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3824 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-09 09:59:29 +00:00
Rick Olson
e320f28945 Make the 3rd arg optional for #failsafe_response
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3815 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-08 14:33:07 +00:00
Rick Olson
31a499ac27 Added a backtrace to the evil WSOD (White Screen of Death). Closes #4073. TODO: Clearer exceptions [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3809 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-07 07:27:54 +00:00
David Heinemeier Hansson
08967ead78 Allow method chaining in RJS elements [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3801 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-06 19:45:02 +00:00
Sam Stephenson
382741f289 Update Prototype for beta gems
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3795 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-06 17:33:25 +00:00
David Heinemeier Hansson
2f9442c1d4 Added tracking of database and framework versions in script/about #4088 [charles.gerungan@gmail.com/Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3783 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-05 21:38:51 +00:00
Jamis Buck
b8134000c4 Silence the migration messages when importing the schema for tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3781 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-05 20:11:08 +00:00
David Heinemeier Hansson
3c756f85be Dont mkdir for each framework now that theyre checked out in their entirety
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3779 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-05 19:29:40 +00:00
David Heinemeier Hansson
84b8920a11 Dont generate migration when doing scaffolding
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3775 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-05 17:17:27 +00:00
David Heinemeier Hansson
5afbffdd95 Migrations created alongside models should be called CreateModels not AddModels for consistency with the create/drop notion of tables [Dave Thomas]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3771 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-05 00:45:19 +00:00
David Heinemeier Hansson
045f5fd02e Added public/javascripts/application.js as a sample since it'll automatically be included in javascript_include_tag :defaults [DHH] (backed out of -a/--with-assets, not worth it)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3770 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-04 23:53:41 +00:00
David Heinemeier Hansson
fc7e06f3e0 Words of caution
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3765 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-04 21:34:59 +00:00
David Heinemeier Hansson
b339170271 Added -a/--with-assets option to rails generator that will include default assets for application layout, javascript, and stylesheet [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3764 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-04 21:30:14 +00:00
David Heinemeier Hansson
b059ceb94f Migrations should use symbols now that the schema dumper is switching to that as well [Suggested by Robby Russel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3763 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-04 20:08:01 +00:00
David Heinemeier Hansson
eb01d35109 Added socket cleanup for lighttpd, both before and after [DHH] Added automatic creation of tmp/ when running script/server [DHH] Added silence_stream that'll work on both STDERR or STDOUT or any other stream and deprecated silence_stderr in the process [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3761 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-04 19:39:26 +00:00
David Heinemeier Hansson
bfaf71cbc2 We need to silence_stderr on the call to svn in order not to get errors when svn is not available or the app is not checked in
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3759 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-04 18:04:55 +00:00
David Heinemeier Hansson
e3bfd08cbc Fixed Effect.Appear in effects.js to work with floats in Safari (closes #3524, #3813, #3044) [Thomas Fuchs]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3757 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-04 17:12:03 +00:00
Jamis Buck
c0d2477886 remove explicit dependency mechanism setting in console_app
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3755 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-03 21:24:39 +00:00
David Heinemeier Hansson
711ce826a7 Fixed type (closes #3999)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3751 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-03 03:21:13 +00:00
David Heinemeier Hansson
94725b02bc Added reload! method to script/console to reload all models and others that include Reloadable without quitting the console (closes #4056) [esad@esse.at]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-03 03:00:55 +00:00
David Heinemeier Hansson
e9d6429ad3 Added that rake rails:freeze:edge will now just export all the contents of the frameworks instead of just lib, so stuff like rails:update:scripts, rails:update:javascripts, and script/server on lighttpd still just works (closes #4047) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-03 02:54:30 +00:00
David Heinemeier Hansson
7864d0e012 Added fix for upload problems with lighttpd from Safari/IE to config/lighttpd.conf (closes #3999) [thijs@fngtps.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3743 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-02 02:56:26 +00:00
David Heinemeier Hansson
8fdb4bc8f6 Added test:uncommitted to test changes since last checkin to Subversion (closes #4035) [technomancy@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3733 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-02 00:17:53 +00:00
Jeremy Kemper
2b02596b96 Clear stale, cached connections left behind by defunct threads. Eliminate duplicate connection cache.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3730 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 22:08:00 +00:00
Jeremy Kemper
9ded584ec3 Help script/about print the correct svn revision when in a non-English locale. Closes #4026.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3723 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 16:30:09 +00:00
Jamis Buck
32e0bebbb9 Use require instead of load with the integration stuff. Add helper method for creating new sessions.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3721 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 16:22:26 +00:00
David Heinemeier Hansson
6f9ac79011 Update old alias too
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3720 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 16:13:33 +00:00
Scott Barron
9fcbd37d9c When freezing to edge, we should also export railties/bin and railties/html so
that rails:update:scripts and rails:update:javascripts still function.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 16:02:50 +00:00
David Heinemeier Hansson
631181ca18 Renamed the "oci" adapter to "oracle", but kept the old name as an alias (closes #4017) [schoenm@earthlink.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3718 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 16:01:53 +00:00
Jamis Buck
7056fc6782 Add 'app' accessor to script/console as an instance of Integration::Session
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3717 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 15:52:40 +00:00
David Heinemeier Hansson
8adaf10eca Match singular naming from directory structure [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3713 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 22:40:19 +00:00
David Heinemeier Hansson
8995483106 Guard against app generation if the database specified isnt supported for preconfiguration [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3711 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 21:01:10 +00:00
Jeremy Kemper
a974b9e3c2 Generator::Base#usage takes an optional message argument which defaults to Generator::Base#usage_message.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3710 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 20:58:29 +00:00
David Heinemeier Hansson
ba8a7bbf4d Stop annoying me when Im changing fixtures for other tests first
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3709 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 20:42:42 +00:00
David Heinemeier Hansson
9ad6e1a628 Various problems with in-memory sqlite dbs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3704 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 19:43:34 +00:00
Jeremy Kemper
e6b848b8c6 Remove the extraneous AR::Base.threaded_connections setting from the webrick server.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3703 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 19:10:08 +00:00
Jamis Buck
1a91abe645 Add integration test support to app generation and testing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3702 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 18:57:32 +00:00
David Heinemeier Hansson
c62c392289 Make clearing follow the object:action naming of the rest of the tasks
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3699 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 16:35:29 +00:00
David Heinemeier Hansson
14a8782e4f Make clearing follow the object:action naming of the rest of the tasks
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3698 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 16:34:16 +00:00
David Heinemeier Hansson
1c59702464 Make clearing follow the object:action naming of the rest of the tasks
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3697 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 16:28:11 +00:00
Jeremy Kemper
3cfea287ba Speed up class -> connection caching and stale connection verification. Closes #3979.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3693 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 21:37:30 +00:00
David Heinemeier Hansson
418a7af455 Rails now depend on Rake 0.7.x
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3692 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 20:54:11 +00:00
David Heinemeier Hansson
abe5b1573e Load, not dump, schema to test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3686 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 06:03:50 +00:00
David Heinemeier Hansson
4df3554e8f Include functionals in default test run
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3684 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 05:20:48 +00:00
David Heinemeier Hansson
985cb44110 Added namespaces to all tasks, so for example load_fixtures is now db:fixtures:load. All the old task names are still valid, they just point to the new namespaced names. "rake -T" will only show the namespaced ones, though [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3680 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 04:38:39 +00:00
David Heinemeier Hansson
660952e5b0 CHANGED DEFAULT: ActiveRecord::Base.schema_format is now :ruby by default instead of :sql. This means that we'll assume you want to live in the world of db/schema.rb where the grass is green and the girls are pretty. If your schema contains un-dumpable elements, such as constraints or database-specific column types, you just got an invitation to either 1) patch the dumper to include foreign key support, 2) stop being db specific, or 3) just change the default in config/environment.rb to config.active_record.schema_format = :sql -- we even include an example for that on new Rails skeletons now. Brought to you by the federation of opinionated framework builders! [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3678 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 00:23:49 +00:00
David Heinemeier Hansson
09f89c4abf Added -r/--repeat option to script/process/spawner that offers the same loop protection as the spinner did. This deprecates the script/process/spinner, so it's no longer included in the default Rails skeleton, but still available for backwards compatibility (closes #3461) [ror@andreas-s.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3672 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 20:25:24 +00:00
Nicholas Seckar
26eaf073c4 Remove ::Controllers related cruft; fix AP tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3668 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 17:49:09 +00:00
Nicholas Seckar
55bb615f10 Update duplicated OrderedOptions code.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 01:56:09 +00:00
David Heinemeier Hansson
647130d7ff Added collision option to template generation in generators (closes #3329) [anna@wota.jp]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3663 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 01:12:58 +00:00
David Heinemeier Hansson
ff7be746e0 Added more information to script/plugin's doings to ease debugging #3755 [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 00:37:11 +00:00
David Heinemeier Hansson
67a978be5d rake appdoc fails with unrecognized option (closes #3757) [Jakob S]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3649 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-25 23:27:41 +00:00
David Heinemeier Hansson
1aea4704dc Added tmp/sessions, tmp/cache, and tmp/sockets as default directories in the Rails skeleton [DHH] Changed the default session configuration to place sessions in tmp/sessions, if that directory is available, instead of /tmp (this essentially means a goodbye to 9/10 White Screen of Death errors and should have web hosting firms around the world cheering) [DHH] Added a default configuration of the FileStore for fragment caching if tmp/cache is available, which makes action/fragment caching ready to use out of the box with no additional configuration [DHH] Changed the default configuration for lighttpd to use tmp/sockets instead of log/ for the FastCGI sockets [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3645 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-25 20:26:14 +00:00
David Heinemeier Hansson
63f188ceb0 Added that script/generate model will now automatically create a migration file for the model created. This can be turned off by calling the generator with --skip-migration [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3644 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-25 19:13:04 +00:00
David Heinemeier Hansson
ef338e4de4 Prepare order for uncommenting, use consistent opt options [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-25 18:52:52 +00:00
David Heinemeier Hansson
290983be31 Added -d/--database option to the rails command, so you can do "rails --database=sqlite2 myapp" to start a new application preconfigured to use SQLite2 as the database. Removed the configuration examples from SQLite and PostgreSQL from the default MySQL configuration [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3642 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-25 18:41:13 +00:00
Jeremy Kemper
09993a6073 Allow script/server -c /path/to/lighttpd.conf
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3641 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-23 21:47:34 +00:00
Jeremy Kemper
5452383174 Remove hardcoded path to reaper script in script/server.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3638 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-22 22:43:43 +00:00
Thomas Fuchs
bb7408fd4c Update script.aculo.us to V1.5.3 [Thomas Fuchs]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3634 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-22 09:59:22 +00:00
David Heinemeier Hansson
03acf48817 Added SIGTRAP signal handler to RailsFCGIHandler that'll force the process into a breakpoint after the next request. This breakpoint can then be caught with script/breakpointer and give you access to the Ruby image inside that process. Useful for debugging memory leaks among other things [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3618 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-19 06:25:47 +00:00
David Heinemeier Hansson
63a95167e8 Also use CWD on document_root (closes #3883) [grant@antiflux.org]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-19 04:05:27 +00:00
David Heinemeier Hansson
1e216b1d84 Updated RDocTask to receive options 1 by 1 (closes #3875) [pterjan@mandriva.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3605 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-19 00:43:10 +00:00
Thomas Fuchs
e8c4cc9503 Update script.aculo.us in Rails trunk to V1.5.2
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3595 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-14 10:29:12 +00:00
David Heinemeier Hansson
b230004897 Changed default lighttpd.conf to use CWD from lighttpd 1.4.10 that allows the same configuration to be used for both detach and not. Also ensured that auto-repeaping of FCGIs only happens when lighttpd is not detached. [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3585 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-12 17:41:53 +00:00
Sam Stephenson
838ec413eb Add JavaScriptGenerator#replace_element for replacing an element's "outer HTML". Closes #3246.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3579 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-12 01:30:13 +00:00
Michael Koziarski
49fad6e6d5 Add Configuration#after_initialize for specifying a block to be executed after the framework is completely initialized.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3547 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-07 00:21:45 +00:00
David Heinemeier Hansson
0633bb865b Update versions to match latest from stable
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3543 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-05 00:59:57 +00:00
Nicholas Seckar
ad9cabd77c Remove LoadingModule
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3526 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-03 20:29:39 +00:00
Nicholas Seckar
6d7b0374d1 Add LoadingModule.clear! back temporarily
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3524 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-02 16:56:15 +00:00
Nicholas Seckar
4bb6f863b4 Pluralization bites again
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3520 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-02 05:08:42 +00:00
Nicholas Seckar
7a43a05a2b Further improvements to reloading code
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3519 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-02 04:54:07 +00:00
David Heinemeier Hansson
f8bcfa6e04 Added check for RAILS_FRAMEWORK_ROOT constant that allows the Rails framework to be found in a different place than vendor/rails. Should be set in boot.rb. [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3496 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-30 04:08:05 +00:00
David Heinemeier Hansson
01b1a87729 Added reusable reloading support through the inclusion of the Relodable module that all subclasses of ActiveRecord::Base, ActiveRecord::Observer, ActiveController::Base, and ActionMailer::Base automatically gets [DHH]. Added auto-loading support for classes in modules, so Conductor::Migration will look for conductor/migration.rb and Conductor::Database::Settings will look for conductor/database/settings.rb [Nicholas Seckar]. Refactored extensions to module, class, and object in active support [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3493 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-29 00:37:39 +00:00
David Heinemeier Hansson
13cd6135cd Fixed that static requests could unlock the mutex guarding dynamic requests in the WEBrick servlet (closes #3433) [tom@craz8.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3455 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-21 23:38:51 +00:00
David Heinemeier Hansson
fab2fd6398 Fixed that static requests could unlock the mutex guarding dynamic requests in the WEBrick servlet (closes #3433) [tom@craz8.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3454 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-21 23:38:41 +00:00
David Heinemeier Hansson
3c8dbcbdf9 Fixed documentation tasks to work with Rake 0.7.0 (closes #3563) [kazuhiko@fdiary.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3451 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-21 23:14:10 +00:00
Sam Stephenson
f0650c51cc Get the version right: 1.5.0_pre0, not rc0
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3436 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-18 23:19:47 +00:00
Sam Stephenson
75784f6bcc Update to Prototype 1.5.0_rc0
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3435 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-18 23:14:47 +00:00
Michael Koziarski
88dae72202 Load plugins in a consistent order. Closes #3429
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3420 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-14 09:15:34 +00:00
Michael Koziarski
32f89dc10b Show usage when script/plugin is called without arguments. Closes #3450
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3419 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-14 09:00:48 +00:00
Michael Koziarski
f9e0ba2913 Correct the case of the CSS declarations. [Blair Zajac] Closes #3171
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3416 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-13 21:28:51 +00:00
Michael Koziarski
35c50bf938 Fix problems with the plugin loader where plugins could override 'name' and prevent loading. Closes #3297
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3414 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-13 09:40:05 +00:00
Marcel Molina
30c6bd9b31 Make migration generator only report on exact duplicate names, not partial dupliate names. Closes #3442.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3413 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-13 09:26:53 +00:00
Marcel Molina
d40af24e20 Fix typo in mailer generator USAGE. Closes #3458.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3411 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-13 08:31:07 +00:00
Marcel Molina
16e41c6b75 Ignore version mismatch between pg_dump and the database server. Closes #3457.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-13 01:29:28 +00:00
Sam Stephenson
6fbedf2e31 Show a message on script/server exit before reaping FCGIs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3399 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-13 01:10:32 +00:00
Sam Stephenson
7fbfc5ab61 Reap FCGI processes after lighttpd exits
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3398 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-12 23:57:44 +00:00
Tobias Lütke
7ff73dfe73 fix for Initializer doc, routing is loaded last so that plugins can extend it
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-11 17:36:22 +00:00
David Heinemeier Hansson
10cf9ecafc Added assignment of the Autocompleter object created by JavaScriptMacroHelper#auto_complete_field to a local javascript variables [DHH] Added :on option for PrototypeHelper#observe_field that allows you to specify a different callback hook to have the observer trigger on [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3378 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-01-03 04:11:51 +00:00
David Heinemeier Hansson
d7487fffe5 Made Field.focus in prototype friendly to effects by adding optional delay parameter [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3366 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-31 04:14:07 +00:00
Thomas Fuchs
1455697ee8 Update to script.aculo.us to 1.5.0 rev. 3343
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3349 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-25 18:23:25 +00:00
David Heinemeier Hansson
cfb0babec3 Added :select option for JavaScriptMacroHelper#auto_complete_field that makes it easier to only use part of the auto-complete suggestion as the value for insertion [Thomas Fuchs]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3348 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-24 22:58:33 +00:00
Marcel Molina
56234bee14 Honor ActiveRecord::Base.pluralize_table_names when creating and destroying session store table. Closes #3204.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3317 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-18 20:20:49 +00:00
Thomas Fuchs
fc4ffbdc69 Update trunk to scriptaculous 1.5 final
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-13 18:41:58 +00:00
Sam Stephenson
a5a54ae9e3 Update to Prototype 1.4.0 final
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3297 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-13 17:51:17 +00:00
Marcel Molina
98068a71df Fix typo in benchmarker usage string.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3290 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-13 02:32:05 +00:00
Marcel Molina
93b4c0b6e1 Fix typo in profiler usage string.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3288 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-13 02:18:36 +00:00
Thomas Fuchs
f7e39c4ec7 Update to script.aculo.us 1.5.0_rc6
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3285 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-12 17:14:05 +00:00
Marcel Molina
a501aa75cd Remove duplicate entry from chagnelogs.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3278 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-11 05:09:52 +00:00
Marcel Molina
f5a4ba5282 Update instructions on how to find and install generators. Closes #3172.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3276 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-11 05:06:06 +00:00
David Heinemeier Hansson
4695133d8d Close h1 with h1 not h2 (closes #3150)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3272 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-10 19:58:01 +00:00
Jeremy Kemper
cebb8ff04b Name vendor/generators source differently from lib/generators source.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3265 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-09 23:41:46 +00:00
Jeremy Kemper
08309ba51a Generator looks in vendor/generators also.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3262 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-09 23:06:04 +00:00
Jeremy Kemper
b056adf03b Fix shebang handling for empty files. References #2927.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3258 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-09 18:47:23 +00:00
Jeremy Kemper
3fb5828621 Generator copies files in binary mode. References #3156.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3256 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-09 18:36:34 +00:00
David Heinemeier Hansson
9d88348e2e Warn people not to change boot.rb
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3231 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-08 03:54:50 +00:00
David Heinemeier Hansson
b4cf3f5739 Finish polish on new welcome screen
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-08 03:41:11 +00:00
Sam Stephenson
60936c5c84 Add builtin/ to the gemspec. Closes #3047.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-06 00:32:57 +00:00
Jeremy Kemper
dc64887f21 Connection cache to speed up retrieve_connection and get rid of dirty connection marking. References #428.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3218 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-04 05:56:49 +00:00
Marcel Molina
4f1e37ccd4 Add install.rb file to plugin generation which is loaded, if it exists, when you install a plugin.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-12-03 06:53:14 +00:00
Sam Stephenson
833d9c89fc Run initialize_logger in script/lighttpd to ensure the log file exists before tailing it
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3198 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-30 19:18:55 +00:00
Marcel Molina
191dfe8c6d Make load_fixtures include csv fixtures. Closes #3053.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-28 23:34:09 +00:00
Nicholas Seckar
ca7341d2a5 Fix freeze_gems so that the latest rails version is dumped by default
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3191 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-28 00:53:38 +00:00
Jeremy Kemper
21d50e4d1a script/plugin: handle root paths and plugin names which contain spaces. References #2995.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3175 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-23 22:24:16 +00:00
Jeremy Kemper
3e51cd8b8e Model generator: correct relative path to test_helper in unit test.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-22 21:33:56 +00:00
Sam Stephenson
1b3c9a0a56 Remove superfluous check for pluralize_table_names (use table_name which does this check when it's set).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-22 08:59:52 +00:00
Marcel Molina
7355d9f1bd Make the db_schema_dump task honor the SCHEMA environment variable if present the way db_schema_import does. Closes #2931.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3136 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-21 08:01:41 +00:00
Sam Stephenson
2b6e2bfed7 Have the lighttpd server script report the actual ip to which the server is bound. Closes #2903.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3123 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-21 06:19:25 +00:00
Marcel Molina
9a37fd44cb Add plugin library directories to the load path after the lib directory so that libraries in the lib directory get precedence. Closes #2910.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3122 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-21 05:55:35 +00:00
Marcel Molina
f14625bb46 Make help for the console command more explicit about how to specify the desired environment in which to run the console. Closes #2911.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3120 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-21 05:33:13 +00:00
Jeremy Kemper
dfa8aa0e1e PostgreSQL: the purge_test_database Rake task shouldn't explicitly specify the template0 template when creating a fresh test database. Closes #2964.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3110 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-20 12:00:46 +00:00
Jeremy Kemper
c2bb269cd5 Allows generator to specify migrations directory. References #2960.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3101 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-20 05:13:59 +00:00
Jeremy Kemper
9b9578fa47 Introducing the session_migration generator. Creates an add_session_table migration. References #2958.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3098 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-20 04:21:06 +00:00
Jeremy Kemper
81c5242f43 r3181@asus: jeremy | 2005-11-19 02:52:24 -0800
Mark connections for verification.  Retrieve connection verifies before returning a connection.  Verification tests whether the connection is marked then reconnects if the connection is inactive.  All active connections are marked for verification after a request is handled.  References #428.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3096 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-19 10:55:11 +00:00
Sam Stephenson
d777e506f2 Update to Prototype 1.4.0_rc4. Closes #2943 (old Array.prototype.reverse behavior can be obtained by passing false as an argument)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3091 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-19 06:59:07 +00:00
Jeremy Kemper
97d5f4acdf script/console uses RAILS_ENV environment variable if present. Closes #2932.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3083 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-18 07:33:28 +00:00
Jeremy Kemper
ae76e22731 Windows: eliminate the socket option in database.yml. Closes #2924.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3082 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-18 07:30:05 +00:00
Jeremy Kemper
db871c8d54 Eliminate nil from newly generated logfiles. References #2927.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-18 05:28:00 +00:00
Sam Stephenson
173544f56c Update to Prototype 1.4.0_rc3. Closes #1893, #2505, #2550, #2748, #2783.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3079 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-18 00:53:11 +00:00
Tobias Lütke
60e425af33 replaced constant Plugin in documentation rake task with plugin local variable. This caused typo's migrations to fail because of name space collisions [Eridius]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3069 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-17 04:58:48 +00:00
Marcel Molina
5cb2aa722d Rename Version constant to VERSION. Closes #2802.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3065 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-17 00:32:16 +00:00
Jeremy Kemper
fc51104fe2 Remove CHANGELOG from apidoc Rake task since it isn't included with new apps anymore.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3063 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-16 22:37:45 +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
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
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
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
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
David Heinemeier Hansson
0c048e7c6f Changelogging
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2979 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-11 10:02:44 +00:00
David Heinemeier Hansson
8e9484d3c1 Make sure that legacy db tasks also reference :database for SQLite (closes #2830) [kazuhiko@fdiary.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2978 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-11 09:50:42 +00:00
Jeremy Kemper
3488ff6fc6 Pass __FILE__ when evaluating plugins' init.rb. Closes #2817.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2973 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 16:25:06 +00:00
Jeremy Kemper
dfda57af85 Better svn status matching for generators. Closes #2814.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2972 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 16:14:25 +00:00
David Heinemeier Hansson
7afaa6ed55 Disabled stderr suppressing until activesupport is available also in non-gem mode
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2969 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 11:23:20 +00:00
David Heinemeier Hansson
bc223236a6 Don't reload routes until plugins have been loaded so they have a chance to extend the routing capabilities [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2967 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 10:45:39 +00:00
Nicholas Seckar
73a697c38a Don't detach or fork for script/server tailing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2961 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-09 22:57:05 +00:00
David Heinemeier Hansson
c7e5c27b51 Added automatic browser launching on OS X when starting script/server [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2960 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-09 22:15:01 +00:00
David Heinemeier Hansson
5879a2e919 Changed all script/* to use /usr/bin/env ruby instead of hard-coded Ruby path. public/dispatcher.* still uses the hard-coded path for compatibility with web servers that dont have Ruby in path [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2959 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-09 21:15:41 +00:00
David Heinemeier Hansson
773b869088 Another word on precedence (closes #2790)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2956 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-09 15:35:37 +00:00