Michael Koziarski
985ee85f59
Remove broken require
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8023 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-26 02:58:24 +00:00
Michael Koziarski
2cc0cac3ef
Introduce TestCase subclasses for testing rails applications allowing tests to be DRY'd up a bit and to provide a path toward tidying up our monkeypatching of test/unit.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8022 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-26 02:21:21 +00:00
Jeremy Kemper
d69be7df6d
Request profiler
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8016 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-25 20:33:28 +00:00
Jeremy Kemper
a2c9c92b72
rake test aborts if tests failed. Closes #9962 [Jason Roelofs]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8008 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-23 20:08:51 +00:00
David Heinemeier Hansson
d6f49e4af1
Fixed incorrect migration number if script/generate executed outside of Rails root ( closes #7080 ) [jeremymcanally]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7963 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-18 15:54:01 +00:00
David Heinemeier Hansson
34df379467
Docfix (cloases #9832 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7961 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-18 15:49:11 +00:00
Jeremy Kemper
2e2ce1f6c9
Generated fixtures use the actual primary key instead of id. Closes #4343 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7899 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-15 04:33:45 +00:00
David Heinemeier Hansson
faff774f9d
Update versions here too
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7843 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-12 16:03:54 +00:00
David Heinemeier Hansson
c8d9a07a00
Added better documentation for generator overwrite options ( closes #9842 ) [wincet]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7837 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-11 15:15:32 +00:00
Jeremy Kemper
9929cb4ec2
config.active_record.whiny_protected_attributes. Closes #9816 [henrik]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7807 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-08 20:37:19 +00:00
Jeremy Kemper
1c90758889
Include ARes and Railties in rdoc. Freeze ARes gem instead of AWS.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7803 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-08 07:10:58 +00:00
Jeremy Kemper
e7b80cbbbc
Create layout dir it's nested. References #9272 [alancfrancis]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7784 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-08 00:54:26 +00:00
Jeremy Kemper
00d9f58f29
Use a configuration check so ActiveRecord can be omitted. References #9699 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7781 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-07 22:39:44 +00:00
Jeremy Kemper
84a14f2620
Raise ProtectedAttributeAssignmentError in development and test environments when mass-assigning to an attr_protected attribute. Closes #9699 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7777 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-07 19:43:19 +00:00
Jeremy Kemper
98f50607e1
Axe excess backtracery.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7770 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-07 06:09:54 +00:00
Michael Koziarski
907d6ce285
Extend the console +helper+ method to allow you to include custom helpers. Closes #6781 [Chris Wanstrath]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7765 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-07 03:08:08 +00:00
Jeremy Kemper
335c15005d
Bump versions for 1.2.4 release.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-05 05:20:37 +00:00
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