Michael Koziarski
41bfedeac2
Tidy up framework initialization code to ensure that it doesn't add folders to the load path that it doesn't intend to require.
...
Work around mongrel swallowing LoadErrors to ensure that users get more helpful errors if active_resource is required but not missing. [mislav] Closes #9743
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7738 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-04 04:16:06 +00:00
Jeremy Kemper
9264bdc8f6
db:create works with remote databases whereas db:create:all only createsdatabases on localhost. Closes #9753 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7718 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-02 03:20:52 +00:00
Michael Koziarski
f854ecd126
Add --prefix option to script/server when using mongrel. [dacat] Closes #9716
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7708 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-01 03:15:51 +00:00
David Heinemeier Hansson
ec4989618e
Removed calls to fixtures in generated tests as fixtures :all is now present by default in test_helper.rb [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7705 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-01 02:08:15 +00:00
David Heinemeier Hansson
00cecf83b5
Fixed that installing plugins from SVN repositories that use trunk/ will work ( closes #8188 ) [evan]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7698 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-30 22:53:27 +00:00
Rick Olson
8c33359ce8
Moved the SourceAnnotationExtractor to a separate file in case libraries try to load the rails rake tasks twice. rspec_on_rails, I'm looking at you. [Rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7672 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-28 17:02:40 +00:00
Rick Olson
82ff27766d
Better error messages if you leave out the :secret option for request forgery protection. Closes #9670 [rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7671 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-28 16:50:48 +00:00
David Heinemeier Hansson
e3b49c052b
Fixed spelling errors ( closes #9706 ) [tarmo/rmm5t]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-28 14:18:47 +00:00
Jeremy Kemper
f08da31a4f
Move Railties' Dispatcher to ActionController::Dispatcher, introduce before_ and after_dispatch callbacks, and warm up to non-CGI requests.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7640 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-26 01:24:07 +00:00
David Heinemeier Hansson
6b2226aae9
Fix webrick when using the debugger ( closes #9348 ) [bronson]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7639 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-25 19:08:50 +00:00
David Heinemeier Hansson
a4e1b79b07
Fix test ( closes #9120 ) [hasmanyjosh]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7638 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-25 19:06:24 +00:00
David Heinemeier Hansson
f65c202416
Use the correct generator name in the docs ( closes #9111 ) [ceefour]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7637 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-25 19:04:52 +00:00
Jeremy Kemper
3b98b68516
Doof. Don't call it with false if it doesn't respond.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7628 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-25 08:51:06 +00:00
Jeremy Kemper
14c1cb4bcb
Skip test runner workaround only if Test::Unit is loaded. Closes #9671 [tomafro]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7627 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-25 08:44:26 +00:00
David Heinemeier Hansson
79a9c7a702
Added ActiveSupport::BufferedLogger as a duck-typing alternative (albeit with no formatter) to the Ruby Logger, which provides a very nice speed bump (inspired by Ezra's buffered logger) [DHH] Changed the default logger from Ruby's own Logger with the clean_logger extensions to ActiveSupport::BufferedLogger for performance reasons [DHH]. (You can change it back with config.logger = Logger.new(/path/to/log, level).)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7626 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-25 03:47:37 +00:00
David Heinemeier Hansson
89235ba0bb
Include the new 422 in the app generation
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-24 23:31:59 +00:00
David Heinemeier Hansson
f0055871a3
Follow our own conventions ( closes #6506 ) [packagethief]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7603 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-23 22:16:09 +00:00
David Heinemeier Hansson
906c49d0f3
Added --skip-fixture option to script/generate model ( closes #6862 ) [sandofsky]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7601 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-23 22:08:02 +00:00
Jeremy Kemper
ccc9549436
Revert [7574]. Closes #7521 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7594 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-23 11:31:37 +00:00
Jeremy Kemper
547447ad2a
RailsFCGIHandler tests. Closes #9630 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7593 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-23 11:20:25 +00:00
David Heinemeier Hansson
82a85e8592
Skip svnindex.xsl files when installing plugins ( closes #7070 ) [davidjrice]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7585 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 23:20:48 +00:00
David Heinemeier Hansson
4cf23c9f8e
Print Rails version when starting console ( closes #7440 ) [eyematz]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7576 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 22:17:10 +00:00
David Heinemeier Hansson
833bd62e20
Fix CSS error in scaffold ( closes #7450 ) [kampers]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7575 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 22:14:16 +00:00
David Heinemeier Hansson
35e382627e
Added rake db:version to get the current schema version from the command line ( closes #7521 ) [pelargir]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7574 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 22:12:10 +00:00
David Heinemeier Hansson
1d4002d462
Fixed the placement of fixture files for nested models when generating through script/generate model ( closes #7547 ) [jkit]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7573 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 22:10:49 +00:00
David Heinemeier Hansson
59c36fd456
Added TEMPLATE option to rake doc:app to set a custom output template ( closes #7737 ) [Jakob S]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7568 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 18:33:39 +00:00
David Heinemeier Hansson
9809dc4540
Added VERBOSE option to rake db:migrate to turn off output #8204 [jbarnette]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7566 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 18:28:53 +00:00
David Heinemeier Hansson
2a34e082f3
Doc fixes ( closes #8608 ) [deepblue]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7564 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 18:24:17 +00:00
David Heinemeier Hansson
f18c24c397
Fixed that rake doc:app should use UTF-8 ( closes #8906 ) [farzy]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7555 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 17:55:57 +00:00
David Heinemeier Hansson
f336cf463c
Fixes rake annotations to search erb and builder files as well ( closes #9150 ) [m.langenberg]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7553 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 17:52:11 +00:00
David Heinemeier Hansson
c361caf8b4
Doc fix ( closes #9203 ) [lazyatom]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7551 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 17:43:31 +00:00
David Heinemeier Hansson
ac4f37ecbb
Doc fix ( closes #9259 ) [caio]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7550 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 17:41:03 +00:00
David Heinemeier Hansson
a5fde99873
Plugin license and README should use a dynamic year ( closes #9329 ) [bscofield]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 17:34:01 +00:00
Michael Koziarski
39b77ca347
Remove last mentions of AWS from railties
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7544 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 17:21:40 +00:00
Michael Koziarski
0ba96e0568
Remove the AWS web_service generator
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7543 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 17:19:42 +00:00
David Heinemeier Hansson
a5af3f75af
Added symbols as a legal way of specifying plugins in config.plugins ( closes #9629 ) [tom]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7540 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 17:08:09 +00:00
David Heinemeier Hansson
6dd10d85da
Added the :all option to config.plugins thatll include the rest of the plugins not already explicitly named ( closes #9613 ) [fcheung]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7531 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-21 22:31:19 +00:00
David Heinemeier Hansson
83c17f2089
Removed deprecated task names, like clear_logs, in favor of the new namespaced style [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7530 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-21 22:22:12 +00:00
David Heinemeier Hansson
bd311ce922
Updated some docs to reference the latest and greatest and played style nazi a little
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7517 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-20 23:16:06 +00:00
Jeremy Kemper
4f375d5b82
Support multiple config.after_initialize blocks so plugins and apps can more easily cooperate. Closes #9582 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7507 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-18 01:45:37 +00:00
David Heinemeier Hansson
694f15758c
Added db:drop:all to drop all databases declared in config/database.yml [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7489 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-15 22:56:07 +00:00
Jeremy Kemper
15f7f1a380
Missed Reloadable bits and pieces
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7475 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-14 01:00:32 +00:00
Jeremy Kemper
d54a1564a1
Don't raise superfluous exception on test failure.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7455 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-11 05:19:15 +00:00
David Heinemeier Hansson
85800c110e
Update copyright span
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7425 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-09 17:57:16 +00:00
Michael Koziarski
fa602bb86d
Use attribute pairs instead of the migration name to create add and remove column migrations. Closes #9166 [lifofifo]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7422 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-09 05:40:34 +00:00
Michael Koziarski
6b9b511de1
Fix task description for db:sessions:create. Closes #9419 [topfunky]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7398 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-02 23:52:24 +00:00
Michael Koziarski
2fc4be68a6
Remove duplication in test_help.rb Closes #3328 [jarkko]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-02 23:50:51 +00:00
Michael Koziarski
94e5b10aff
Use Gem.find_name instead of search when freezing gems. Prevent false positive for other gems with rails in the name. Closes #8729 [wselman]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7233 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-07-24 21:06:45 +00:00
Rick Olson
7de537dbf4
Automatically generate add/remove column commands in specially named migrations like AddLocationToEvent. Closes #9006 [zenspider]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-07-24 04:10:22 +00:00
Rick Olson
f9b7394430
Default to plural table name in Rails Generator if ActiveRecord is not present. Closes #8963 [evan]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7183 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-07-12 06:23:50 +00:00