Commit Graph

16322 Commits

Author SHA1 Message Date
Josiah Ivey
774f596693 Fix punctuation and keep the tone consistent 2010-05-16 13:58:56 -05:00
Neeraj Singh
5de2e0d416 better documentation for dependent option [#4564 state:resolved] 2010-05-16 06:47:16 +04:30
Xavier Noria
24610c9b28 simplify contact information in the guides contribution guide 2010-05-16 00:09:55 +02:00
Xavier Noria
08fb1c4565 updates the contribute guide in several aspects 2010-05-16 00:00:38 +02:00
Jeroen van Dijk
f45714bb4a Added extra documentation for content_for helper 2010-05-15 15:33:30 +02:00
eparreno
a447f76fe5 AR Validations: Errors section updated 2010-05-15 08:52:47 +02:00
eparreno
04289172cb routing guide: fix typos and clarify code examples 2010-05-13 16:12:25 +02:00
Anil Wadghule
6e4e95b7f9 Updated 3.0 release notes guide to inform issues with unsupported Ruby versions. 2010-05-13 14:49:21 +05:30
eparreno
79e5e79b0d fix wrong action name [#134] 2010-05-12 23:15:07 +02:00
eparreno
bcccf924af complete rake tasks table and fix format 2010-05-12 22:59:25 +02:00
rohit
6b1cb1d4fd Getting started, fixed some links in changelog 2010-05-10 17:43:58 +05:30
Xavier Noria
e1a0d86fe0 Merge remote branch 'rails/master' 2010-05-09 11:46:45 +02:00
Xavier Noria
1ff3d951e6 AS guide: more date calculation utilities 2010-05-09 12:45:21 +03:00
Xavier Noria
df508bd970 aliases Date#sunday to Date#end_of_week, for symmetry with existing alias Date#monday -> Date#beginning_of_week 2010-05-09 11:16:34 +02:00
Xavier Noria
08d991ad40 AS guide: you know, the 10th is not November 2010-05-09 11:44:22 +03:00
Xavier Noria
345c38a527 AS guide: adds a catchall note about date calculations around the calendar reform 2010-05-09 11:41:13 +03:00
Xavier Noria
2969543cef adds calendar reform test coverage for more relevant date calculations 2010-05-09 10:26:21 +02:00
Santiago Pastorino
c31b386a88 Updates bundler information, now bundler has a homepage 2010-05-08 21:41:41 -03:00
wycats
d916c62cfc eliminate alias_method_chain from ActiveRecord 2010-05-09 02:37:52 +03:00
Xavier Noria
7a5aa35ed0 AS guide: documents some Date calculations (calendar reform details pending) 2010-05-09 02:29:02 +03:00
Xavier Noria
636ffa1f08 Backports Date#>> from 1.9 so that calculations do the right thing around the calendar reform
Our next_month gives November for some late dates in September of 1582.
Related methods, last_*, and in general advance have the same issues.
This commit fixes those, see the test suite for expected behavior, which
we still run in 1.9 to ensure it matches as we do with other methods
defined in Date in 1.9.
2010-05-09 01:20:23 +02:00
Josh Kalderimis
605c6455ac removed AR from all AMo tests, including any unneeded files (schema, fixtures and test helper) 2010-05-09 00:08:11 +03:00
Josh Kalderimis
88ad3ed8b5 removed an old unused model in the AMo tests which also removes another AR dependency 2010-05-09 00:08:11 +03:00
Josh Kalderimis
e17ff6d617 updated AR to work with the AMo model validation changes 2010-05-08 23:51:36 +03:00
Josh Kalderimis
66913a76af removed use of AR in AMo tests and removed testing of scopes (:on) in individual validation tests and moved them to their own test file 2010-05-08 23:51:36 +03:00
Josh Kalderimis
82485068f8 updated AMo validations to use a context for valid? and invalid?, removing the dependency on AR 2010-05-08 23:51:28 +03:00
Santiago Pastorino
0b4211c88b Here the intention was to assign to different objects 2010-05-08 23:29:51 +03:00
Xavier Noria
7184a9e643 add test coverage for (last|next)_year on leap years 2010-05-08 18:46:15 +02:00
Sam Ruby
788684d75a get the rescue error page back [#4536 state:resolved] 2010-05-08 17:55:51 +02:00
José Valim
6626833db1 Revert "Add index length support for MySQL [#1852 state:open]"
This commit breaks dumping a few tables, as the sessions table.
To reproduce, just create a new application and:

  rake db:sessions:create
  rake db:migrate
  rake db:test:prepare

And then look at the db/schema.rb file (ht: Sam Ruby).

This reverts commit 5b95730edc33ee97f53da26a3868eb983305a771.
2010-05-08 17:46:39 +03:00
Emili Parreno
5b95730edc Add index length support for MySQL [#1852 state:resolved]
Example:

  add_index(:accounts, :name, :name => 'by_name', :length => 10)
  => CREATE INDEX by_name ON accounts(name(10))

  add_index(:accounts, [:name, :surname], :name => 'by_name_surname', :length => {:name => 10, :surname => 15})
  => CREATE INDEX by_name_surname ON accounts(name(10), surname(15))

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2010-05-08 12:39:46 +01:00
Santiago Pastorino
9aaef59356 Make find_or_create and find_or_initialize work mixing explicit parameters and a hash [#4457 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-05-07 09:40:02 -07:00
Rohit Arondekar
2cc1686bda migration, correct file and created a code sample out of it. 2010-05-07 00:03:16 -07:00
Lawrence Pit
1e1d30715e Fix parsing xml input by ActionDispatch::ParamsParser
[#4437 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-05-06 20:34:47 -07:00
Rohit Arondekar
d3e405cdbc Migrations, rewrote a sentence for clarity. 2010-05-06 20:33:24 -07:00
Ernie Miller
902861a43a Fix unintuitive behavior with multiple order and group clauses
[#4545 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-05-06 16:00:39 -07:00
Carl Lerche
6d7f2790cd Expand paths to app builders relative to the working directory 2010-05-06 12:02:54 +03:00
Anil Wadghule
6071b4720c Updated guide to inform issues with unsupported Ruby versions. 2010-05-06 01:26:25 +05:30
Ernie Miller
5be49884b5 Prevent calling regexp on symbol in Ruby 1.9 in association_proxy
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2010-05-05 18:54:07 +01:00
wycats
743d77f405 Update hidden namespace mechanism to work better with alternate choices and to support full namespaces (not just entire groups) 2010-05-05 10:12:33 +02:00
Santiago Pastorino
b38639ab71 typo 'Provivdes' -> 'Provides' 2010-05-05 00:55:44 -03:00
Xavier Noria
f2072a323c adds Date#to_time refinement from previous commit to the CHANGELOG 2010-05-05 00:48:31 +02:00
Brian Lopez
bf2ee89659 add support for mysql2 adapter to dbconsole
[#4532 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-05-04 15:47:08 -07:00
Xavier Noria
53c1cd6cde let Time.time_with_datetime_fallback handle properly years in the range 0..138 2010-05-05 00:35:06 +02:00
Mathieu Arnold
38da0ace77 Use primary key in conditions, not 'id' [#4395 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2010-05-04 22:45:08 +01:00
Jatinder Singh
bce2c0ce37 Active Model JSON serializer now supports custom root option
[#4515 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-05-04 13:17:26 -07:00
Brian Lopez
7aad851c2e Allow pre-casted values (other than nil) to pass through from calculations un-touched
[#4514 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-05-04 11:57:52 -07:00
Xavier Noria
583b60d109 Merge remote branch 'rails/master' 2010-05-04 19:36:26 +02:00
Josiah Ivey
0dd3b4630f image_tag should be audio_tag, and change typo 'image' to 'audio file' 2010-05-04 19:31:41 +02:00
mica eked
d5e3c49478 typo "<image />" -> "<img />", and typo 'follow' -> 'following' 2010-05-04 19:31:40 +02:00