rick
c8451aeeea
change ActionController::RequestForgeryProtection to use Mime::Type#verify_request? [ #73 ]
2008-05-06 02:58:32 -07:00
rick
92e2e5990c
include bugfix to [ e792d4ab70] for rubygems 1.0.1. Gem::DependencyList#dependency_order was bombing with nil specs passed in from a frozen gem. [ #122 ]
2008-05-06 01:20:59 -07:00
rick
0697d17d12
Change the request forgery protection to go by Content-Type instead of request.format so that you can't bypass it by POSTing to "#{request.uri}.xml" [ #73 state:resolved]
2008-05-06 00:42:24 -07:00
Andrew Vit
04f52219f1
Fixed form helper's name attribute for question methods
2008-05-06 00:03:32 -07:00
rick
123e55686d
Fix bug where plugin init.rb files from frozen gem specs weren't being run. (pjb3) [ #122 state:resolved]
2008-05-06 00:01:37 -07:00
rick
9c2657aa96
Merge commit 'e792d4ab70448f79142fdf492390682ff5ea6398'
2008-05-05 23:55:10 -07:00
rick
37599d16f2
regression test for bug introduced in [ 6a6b4392c1] [Ian White] [ #22 state:resolved]
2008-05-05 23:42:52 -07:00
Cheah Chu Yeow
ee1d508a6b
Allow ActionController::Base#default_url_options to have a default options argument of nil.
...
This fixes a bug introduced in [6a6b4392c1 ] which was breaking routing in ActionController::UrlWriter.
2008-05-05 23:41:33 -07:00
Kyle Hargraves
04d8554860
Restore dump_schema_information connection adapter method
2008-05-05 23:25:22 -07:00
rick
0052938ac5
Merge commit 'core/master'
2008-05-05 23:19:21 -07:00
Paul Barry
e792d4ab70
Added code to make initialization process call rails/init.rb for unpacked gems
2008-05-06 00:52:12 -04:00
Joshua Peek
3cffe92ff0
Added Ruby 1.8 implementation of Process.daemon
2008-05-05 10:22:29 -05:00
Sean Ouimet
d75525b045
Added OrderedHash#delete [ #113 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-05-05 10:03:11 -05:00
Joshua Peek
a40223d36d
Preload TimeZone zones for thread safety.
2008-05-04 21:53:07 -05:00
Joshua Peek
36662ed08e
Replaced unnecessary class variable with a constant in whiny nil.
2008-05-04 21:11:03 -05:00
Cheah Chu Yeow
6a6b4392c1
Ensure that default_url_options, if defined, are used in named routes.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#22 state:resolved]
2008-05-04 12:49:44 +12:00
Michael Koziarski
437f918646
Allow custom loggers to work with script/server.
...
Instead of requiring the initializer and initializing the logger, create the file manually before tailing it.
[atnan] Closes #8665 (trac)
2008-05-04 12:31:34 +12:00
Pete Deffendol
205750c8de
PostgreSQL: Connect to template1 database when creating or dropping db
...
* The template1 database is always available on a PostgreSQL install
* The previous behavior expected a database with the same name as the
connecting user, which may not be available
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#38 state:resolved]
2008-05-04 12:20:14 +12:00
David Heinemeier Hansson
96980bd561
Added change_table for migrations (Jeff Dean) [ #71 state:resolved]
2008-05-03 11:29:47 -05:00
Xavier Noria
64092de257
Improve documentation coverage and markup
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-05-02 14:45:23 +01:00
Pratik Naik
87ec72bd8c
Improve PartialTemplate tests
2008-05-02 10:45:08 +01:00
Nathan Weizenbaum
b88a6dbc39
Capture view errors in ActionView::Template.
...
This means that errors raised by partials are caught by ActionView::PartialTemplate,
which in turn means they have the proper filename and line number information.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-05-02 10:28:53 +01:00
David Heinemeier Hansson
f6ec296ad8
Fixed that TextHelper#text_field would corrypt when raw HTML was used as the value (mchenryc, Kevin Glowacz) [ #80 state:resolved]
2008-05-01 17:56:32 -05:00
David Heinemeier Hansson
12288a0341
Merge branch 'master' of git@github.com:rails/rails
2008-05-01 17:26:46 -05:00
David Heinemeier Hansson
926f4648f0
Made the location of the routes file configurable with config.routes_configuration_file (Scott Fleckenstein) [ #88 state:resolved]
2008-05-01 17:26:31 -05:00
Tobias Lütke
f48e89931f
Accept header mime parser can now deal with empty fields
2008-05-01 17:45:14 -04:00
Jeremy Kemper
f122ca5874
Ruby 1.9 compat: don't shadow local with block var
2008-05-01 14:05:55 -07:00
Jeremy Kemper
e931394d09
Fix failing associate_with_create tests inserting null first_name
2008-05-01 13:53:10 -07:00
David Heinemeier Hansson
8e8a8b55b9
Merge branch 'master' of git@github.com:rails/rails
2008-05-01 15:41:34 -05:00
Jeremy Kemper
c699a4daf1
Ruby 1.9 compat: compatibility wrapper for new Module#const_defined? behavior
2008-05-01 13:34:31 -07:00
David Heinemeier Hansson
ab4d455d6d
Added missing files
2008-05-01 15:03:16 -05:00
Hongli Lai (Phusion
1f2a4b37ac
Prevent AssetTagHelper from crashing if RAILS_ROOT is not defined. Fixes compatibility with Passenger. [ #84 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-05-01 12:45:03 -07:00
David Heinemeier Hansson
e2af713d1c
Merge branch 'master' of git@github.com:rails/rails
2008-05-01 14:32:50 -05:00
Steven Soroka
9c20391bbe
best solution?
...
Signed-off-by: Steven Soroka <ssoroka78@gmail.com >
2008-05-01 14:22:55 -05:00
Pratik Naik
74436d2203
Fixed render :template for templates in top level of view path. [ #54 state:resolved]
2008-05-01 10:21:46 +01:00
David Heinemeier Hansson
6f20efdaf7
Fixed AssociationsPreload such that it doesnt require foreign keys to be integers (fcheung) [ #33 state:resolved]
2008-04-30 23:30:50 -05:00
David Heinemeier Hansson
1eb686a0e5
Cheaper Dependencies#log_call to resolve irritating error message w/ rake db:create (Sven) [ #56 state:resolved]
2008-04-30 23:20:59 -05:00
David Heinemeier Hansson
dd120ede53
Added block-setting of attributes for Base.create like Base.new already has (Adam Meehan) [ #39 state:resolved]
2008-04-30 23:14:32 -05:00
Kevin Glowacz
c83f75812e
Fixed labels that have a bracketed name and an index [ #68 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-04-30 17:21:18 -05:00
Joshua Peek
96d9691e71
FormHelper#label_tag accepts :for option [encoded] [ #38 state:resolved]
2008-04-30 17:14:28 -05:00
Rhett Sutphin
b4c33711c5
Fixed fixture caching with prefixed or suffixed tables.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-04-30 16:59:22 -05:00
David Heinemeier Hansson
c353794dff
Fixed that pessimistic locking you reference the quoted table name (Josh Susser) [ #67 state:resolved]
2008-04-30 15:04:08 -05:00
David Heinemeier Hansson
5cef8bcc54
Forgot these
2008-04-30 15:00:59 -05:00
David Heinemeier Hansson
d327496ab7
Fixed tests (and the weird assumption that no logger would mean that the code wasnt run)
2008-04-30 15:00:15 -05:00
David Heinemeier Hansson
56861af733
Added test for has_one partial rendering (keeran) [ #43 state:resolved]
2008-04-30 14:59:24 -05:00
David Heinemeier Hansson
a3da293b33
Fixed render :partial => @collection.named_scope (nkallen) [ #61 state:resolved]
2008-04-30 14:42:44 -05:00
Frederick Cheung
a6cca5d1fc
Ensure postgresql tests work when starting from scratch.
2008-04-30 21:54:54 +12:00
David Heinemeier Hansson
874603ce8d
Change tests against all scope to base scope as all is now used as a finder alias
2008-04-30 00:25:52 -05:00
David Heinemeier Hansson
1282ddaadc
Fixed tabs to spaces [ #47 state:resolved]
2008-04-29 17:23:50 -05:00
David Heinemeier Hansson
869d731cca
Fixed response logging to use length instead of the entire thing (seangeo) [ #27 state:resolved]
2008-04-29 17:16:36 -05:00