David Heinemeier Hansson
d2fefbe908
Added MultiparameterAssignmentErrors and AttributeAssignmentError exceptions #777 [demetrius]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@853 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 14:11:26 +00:00
David Heinemeier Hansson
fd9967bca2
Added UrlHelper#link_to_if/link_to_unless to enable other conditions that just link_to_unless_current #757 [mindel]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@852 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 14:06:33 +00:00
David Heinemeier Hansson
9eb04967a4
Added web_service generator (run ./script/generate web_service for help) #776 [Leon Bredt]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@851 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 14:02:27 +00:00
David Heinemeier Hansson
2581806abd
Added web_service generator (run ./script/generate web_service for help) #776 [Leon Bredt]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@850 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 14:01:52 +00:00
David Heinemeier Hansson
cbb65c39ec
Fixed that postgresql adapter would fails when reading bytea fields with null value #771 [rodrigo k]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@849 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 13:59:15 +00:00
David Heinemeier Hansson
00fe726a76
Updated docs on auto-indexing #765 [Astinus]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@848 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 13:57:16 +00:00
David Heinemeier Hansson
87b55f59dd
Updated wording in YAML error [noradio]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@847 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 13:53:29 +00:00
David Heinemeier Hansson
903ef71b99
Added transactional fixtures that uses rollback to undo changes to fixtures instead of DELETE/INSERT -- it's much faster. See documentation under Fixtures #760 [bitsweat]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@846 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 13:51:55 +00:00
David Heinemeier Hansson
0ceab8114c
Better yaml fixture error #759 [xal]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@845 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 13:45:22 +00:00
David Heinemeier Hansson
6cae2b7439
Added inflection rules for "sh" words, like "wish" and "fish" #755 [phillip@pjbsoftware.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@844 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 13:43:04 +00:00
David Heinemeier Hansson
7267db5890
Added destruction of dependent objects in has_one associations when a new assignment happens #742 [mindel]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@843 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 13:40:21 +00:00
David Heinemeier Hansson
838ae35d63
Added validates_numericality_of #716 [skanthak/c.r.mcgrath]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@842 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 12:43:23 +00:00
David Heinemeier Hansson
12c775f20c
Added app/apis and components to code statistics report #729 [Scott Barron]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@841 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 12:32:02 +00:00
David Heinemeier Hansson
a22ed3d8c2
Use example.com domains to make rails RFC2606 compliant #708
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@840 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 12:27:06 +00:00
David Heinemeier Hansson
5718eb190c
Fixed WEBrick server to use ABSOLUTE_RAILS_ROOT instead of working_directory #687 [Nicholas Seckar]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@839 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 12:24:21 +00:00
David Heinemeier Hansson
6d566e82b4
Fixed rails_generator to be usable without RubyGems #686 [Cristi BALAN]. Moved all active support dependencies into active support
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@838 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 12:20:53 +00:00
David Heinemeier Hansson
25b656fefa
Fixed that single quote was not escaped in a UrlHelper#link_to javascript confirm #549 [Scott Barron]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@837 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
v0.10.1
2005-03-06 12:07:13 +00:00
David Heinemeier Hansson
eb5ca2ea5f
Removed the default border on link_image_to (it broke xhtml strict) -- can be specified with :border => 0 #517 [?/caleb]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@836 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 12:02:17 +00:00
David Heinemeier Hansson
fe6d929bf0
Fixed reflection_for_gps_location test
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@835 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 11:56:22 +00:00
David Heinemeier Hansson
5e44eda787
Fixed that HasManyAssociation#count was using :finder_sql rather than :counter_sql if it was available #445 [Scott Barron]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@834 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 11:53:49 +00:00
David Heinemeier Hansson
dfac1cea3d
Fixed that form helpers would treat string and symbol keys differently in html_options (and possibly create duplicate entries) #112 [bitsweat]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@833 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 11:50:41 +00:00
David Heinemeier Hansson
db41d2dd5c
Fixed -h/--help for generate and destroy generators #331
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@832 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 11:42:17 +00:00
David Heinemeier Hansson
5da277b182
Added begin/rescue around the FCGI dispatcher so no uncaught exceptions can bubble up to kill the process (logs to log/fastcgi.crash.log)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@831 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-04 12:12:55 +00:00
Leon Breedt
d43392a50b
add action_web_service/test_invoke, will be used by for testing APIs in
...
a Rails project instance.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@830 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-04 10:07:53 +00:00
David Heinemeier Hansson
b78283b3fc
Fixed that broken pipe errors (clients disconnecting in mid-request) could bring down a fcgi process
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@829 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-03 23:12:57 +00:00
David Heinemeier Hansson
3b2e356cd2
Added the original exception message to session recall errors (so you can see which class wasnt required)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@828 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-03 23:05:16 +00:00
David Heinemeier Hansson
e4106a580e
Fixed an exception when using Ajax based requests from Safari because Safari appends a \000 to the post body. Symbols can't have \000 in them so indifferent access would throw an exception in the constructor. Indifferent hashes now use strings internally instead. #746 [Tobias Luetke]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@827 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-03 22:55:14 +00:00
Leon Breedt
e834be75bc
allow the client to specify options to be passed through to the underlying
...
SOAP::RPC::Driver. add to RDoc an example of using these options to configure SSL
client-certificate authenticated connections to the server.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@826 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-03 21:30:44 +00:00
Leon Breedt
631340d5d1
make the marshaler use the same set of columns as the code that generates
...
WSDL, avoids mismatches when there are associations in the AR model class.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@825 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-02 22:55:00 +00:00
David Heinemeier Hansson
6d688aa20c
Added String#to_time and String#to_date for wrapping ParseDate
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@824 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-02 13:07:02 +00:00
Leon Breedt
7093c9aaab
add missing entry for #allow_active_record_expects
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@823 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-02 10:47:25 +00:00
David Heinemeier Hansson
654370d9ad
Fixed that RAILS_ROOT might not be defined when AP was loaded, so do a late initialization of the ROUTE_FILE #761 [Scott Barron]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@822 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-02 00:03:11 +00:00
David Heinemeier Hansson
02ba03509c
Added better defaults for composed_of, so statements like composed_of :time_zone, :mapping => %w( time_zone time_zone ) can be written without the mapping part (it's now assumed)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@821 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-01 23:52:36 +00:00
David Heinemeier Hansson
caf8976ce7
Made path work for lighttpd again as it uses an empty string where Apache returns nil
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@820 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-01 17:26:52 +00:00
David Heinemeier Hansson
bc05cb1855
Ensure that the schema information table is available before doing any migration
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@819 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-01 14:50:48 +00:00
David Heinemeier Hansson
eac7cf0b06
Added preliminary support for an agile database migration technique (currently only for MySQL)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@818 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-01 14:27:32 +00:00
David Heinemeier Hansson
28a11969ce
Fix request.path_info and clear up LoadingModule behavior #754 [Nicholas Seckar]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@817 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-01 02:04:54 +00:00
David Heinemeier Hansson
a29625fc80
Fixed caching to be aware of extensions (so you can cache files like api.wsdl or logo.png) #734 [Nicholas Seckar]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@816 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-01 01:44:50 +00:00
Leon Breedt
6b93952ae6
add allow_active_record_expects option to ActionWebService::API::Base,
...
but set the default to false so people don't use it without thinking about
the consequences.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@815 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-28 22:42:24 +00:00
David Heinemeier Hansson
4ba8d08481
Removed a fix that was caused by a bug in RubyGems 0.8.5
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@814 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-28 13:58:42 +00:00
David Heinemeier Hansson
6650da43c8
Fixed that association#count would produce invalid sql when called sequentialy #659 [kanis@comcard.de]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@813 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-28 09:07:03 +00:00
Leon Breedt
cbe21fb498
drop version back down to 0.5.0 so that we can use 0.6.0 for the real
...
next release.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@812 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-27 21:39:02 +00:00
Leon Breedt
100015cd80
Make all custom types and method calls are declared in the 'urn:ActionWebService'
...
namespace as a default, fixes SOAP marshaling for .NET, a regression since the merge.
Make array annotation be recursive in WS::Marshaling::SoapMarshaling, this makes
typed arrays buried in nested structures still be annotated correctly.
Support :layered dispatching mode for XML-RPC namespaced method names.
Change WS::ParamInfo.create signature to require type_binding, and update all
uses of this.
Restore #default_api_method functionality, fixes a regression since the merge.
Fix marshalling of ActiveRecord::Base derivatives, fixes a regression since the merge.
This changeset closes #676 , #677 , and #678 .
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@811 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-27 21:21:40 +00:00
David Heinemeier Hansson
19dddf24a6
Slicker way of quiting on less than Ruby 1.8.2
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@810 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-27 21:16:37 +00:00
David Heinemeier Hansson
38ea84aab6
Fixed test/mocks/testing to the correct test/mocks/test #740
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@809 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-27 20:43:08 +00:00
David Heinemeier Hansson
12e1eae87e
Added early failure if the Ruby version isn't 1.8.2 or above #735
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@808 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-27 20:40:10 +00:00
David Heinemeier Hansson
f46515619f
Fixed the missing shebang in main "rails" script #736
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@807 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-27 20:35:12 +00:00
David Heinemeier Hansson
b8a0903344
--i/index is obsolete #743
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@806 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-27 20:33:00 +00:00
David Heinemeier Hansson
85bb292a8f
Added MacroReflection#macro which will return a symbol describing the macro used (like :composed_of or :has_many) #718 , #248 [james@slashetc.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@805 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-27 17:18:35 +00:00
David Heinemeier Hansson
ea26abeed8
Correct default for ip binding on webrick server #717
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@804 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-27 17:13:55 +00:00