Commit Graph

1260 Commits

Author SHA1 Message Date
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
Jeremy Kemper
2559feb539 Refactor and test boot.rb. Include tests from and closes #9834.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7998 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-23 05:36:52 +00:00
Jeremy Kemper
b98dcdec07 Merge [7832] from 1-2-stable: Correct RAILS_GEM_VERSION regexp. Use =version gem requirement instead of ~>version so you don't get surprised by a beta gem in production.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7964 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-18 17:28:55 +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
Sam Stephenson
45107ecaf8 Update Prototype to 1.6.0_rc1 and script.aculo.us to 1.8.0 preview 0.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7947 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-16 21:08:29 +00:00
Jeremy Kemper
3397d971ff Complete AWS -> ARes changeover. Closes #8717 [kampers]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7914 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-15 08:45:23 +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
Jeremy Kemper
16d47e6dbe Update gem dependencies to match current versions
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7883 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-14 19:24:24 +00:00
Jeremy Kemper
a9eaa25a66 Fix environment.rb typos. Closes #9859 [fxn, mikong]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7871 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-14 03:09:20 +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
Jeremy Kemper
493a2db447 Model generator tests. Closes #8966 [abhay]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7840 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-11 23:12:28 +00:00
Jeremy Kemper
ac102b1054 Whitespace fix. Closes #9845.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7839 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-11 22:42:26 +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
Michael Koziarski
994c9cf0c4 Improve README documentation. References #8770 [mikel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7796 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-08 05:32:50 +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
David Heinemeier Hansson
0068a8a1d8 Remember these for the next release
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7743 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-05 04:44:04 +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
4af5dbbfcc A set secret causes trouble with the cookie store
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7704 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-01 02:02:50 +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
David Heinemeier Hansson
f18356edb7 Updated CHANGELOGs. They need to be filtered for duplicates
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7685 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-29 22:18:26 +00:00
David Heinemeier Hansson
1b56d32893 Remind that you need a server restart for initializer defaults
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7680 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-29 21:47:38 +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
Rick Olson
03f318718e [7668] part deux (forgot to add the railties love to the mix)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-28 16:08:42 +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
bdf5672077 Change from InvalidToken to InvalidAuthenticityToken to be more specific
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7623 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-24 23:12:25 +00:00
David Heinemeier Hansson
eca3b790b5 Give a pointer on where to look for more
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7620 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-24 22:52:35 +00:00
David Heinemeier Hansson
959a1fc22d Added a default 422.html page to be rendered when ActiveRecord::RecordInvalid, ActiveRecord::RecordNotSaved, or ActionController::InvalidToken is raised [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7619 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-24 22:50:43 +00:00
Rick Olson
605aadb3cd protect new rails apps from csrf by default.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-24 18:11:59 +00:00
David Heinemeier Hansson
ab09984d4a Fix docs (closes #9570) [anshkakashi]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7604 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-23 22:42:19 +00:00