aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Tidied up Fixtures for better readability and some error checking [bitsweat]David Heinemeier Hansson2004-12-092-42/+61
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@100 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed TIMESTAMP columns broken due to TIME handling patchDavid Heinemeier Hansson2004-12-091-11/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@99 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Base.errors to be indifferent as to whether strings or symbols are used.David Heinemeier Hansson2004-12-093-15/+47
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@98 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Base.validate_confirmation that encapsulates the pattern of wanting to ↵David Heinemeier Hansson2004-12-093-9/+51
| | | | | | validate the acceptance of a terms of service check box (or similar agreement) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@97 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed the Proc for a string to avoid repetition problemsDavid Heinemeier Hansson2004-12-091-5/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@96 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Base.validate_confirmation that encapsulates the pattern of wanting to ↵David Heinemeier Hansson2004-12-093-4/+70
| | | | | | validate a password or email address field with a confirmation. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@95 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added validation macros to make the stackable just like the lifecycle callbacksDavid Heinemeier Hansson2004-12-093-2/+69
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@94 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* We need to pass the name when deleting the cookieDavid Heinemeier Hansson2004-12-091-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@93 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added CookieJar#delete and fixed CookieJar[] to just call first, so you get ↵David Heinemeier Hansson2004-12-092-1/+8
| | | | | | a string instead of an array back. This limits each cookie to one value, which I consider a mighty fine restriction git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@92 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* A fix that actually works...David Heinemeier Hansson2004-12-081-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@91 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Callbacks added to the inheritable que should only be called once -- even as ↵David Heinemeier Hansson2004-12-081-1/+1
| | | | | | the definition is read again git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@90 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* scope_condition defaults to 1 on list mixinDavid Heinemeier Hansson2004-12-081-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@89 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added mixins to install.rbDavid Heinemeier Hansson2004-12-081-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@88 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cleaned up the class_eval stuff in the new mixins a bitDavid Heinemeier Hansson2004-12-082-9/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@87 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Forgot to include Mixins::Touch by defaultDavid Heinemeier Hansson2004-12-081-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@86 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActiveRecord::Mixins::Touch that will record creation and update times ↵David Heinemeier Hansson2004-12-082-1/+50
| | | | | | of objects [xal] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@85 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActiveRecord::Mixins::List that can decorates an existing class with ↵David Heinemeier Hansson2004-12-082-1/+16
| | | | | | methods like move_higher/lower, move_to_top/bottom git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@84 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Renamed from ListMixin and mixins/list_mixin.rb to Mixins::List and ↵David Heinemeier Hansson2004-12-083-154/+157
| | | | | | mixin/list.rb git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@83 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Unofficially added ListMixinDavid Heinemeier Hansson2004-12-081-0/+154
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@82 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed to_input_field_tag so it no longer explicitly uses InstanceTag.value ↵David Heinemeier Hansson2004-12-081-2/+4
| | | | | | if value was specified in the options hash [evl] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@81 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Killed the out of place alias and made sure you can use the different HTTP ↵David Heinemeier Hansson2004-12-082-6/+17
| | | | | | methods within the same testaction git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@80 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Only nuke the AbstractApplicationController if its availableDavid Heinemeier Hansson2004-12-081-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@79 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added named bind-style variable interpolation #281 [Michael Koziarski]David Heinemeier Hansson2004-12-083-6/+60
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@78 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@77 ↵David Heinemeier Hansson2004-12-081-1/+0
| | | | 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated Builder to 1.2.2David Heinemeier Hansson2004-12-081-1/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@76 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the option for sanitizing find_by_sql and the offset parts in regular ↵David Heinemeier Hansson2004-12-073-5/+50
| | | | | | finds [Sam Stephenson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@75 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Forgot another small change with the new generatorsDavid Heinemeier Hansson2004-12-071-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@74 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Forgot a small change with the new generatorsDavid Heinemeier Hansson2004-12-071-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@73 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@72 ↵David Heinemeier Hansson2004-12-071-12/+13
| | | | 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* New error checking removes the necessity for giving a specific error page ↵David Heinemeier Hansson2004-12-071-1/+1
| | | | | | along to the dispatcher git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@71 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed value quoting in all generated SQL statements, so that integers are ↵David Heinemeier Hansson2004-12-0710-51/+71
| | | | | | not surrounded in quotes and that all sanitation are happening through the database's own quoting routine. This should hopefully make it lots easier for new adapters that doesn't accept '1' for integer columns. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@70 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed has_and_belongs_to_many guessing of foreign key so that keys are ↵David Heinemeier Hansson2004-12-072-1/+4
| | | | | | generated correctly for models like SomeVerySpecialClient [Florian Weber] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@69 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added counter_sql option for has_many associations [bitsweat]David Heinemeier Hansson2004-12-076-43/+69
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@68 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the possibility of having validate be protected for ↵David Heinemeier Hansson2004-12-073-7/+10
| | | | | | assert_(in)valid_column #263 [Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@67 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Trick tests on url_forDavid Heinemeier Hansson2004-12-071-0/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@66 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that methods wrapped in callbacks still return their original result ↵David Heinemeier Hansson2004-12-072-25/+32
| | | | | | #260 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@65 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make the dispatch.rb behave after being run by the WEBrick dispatcherDavid Heinemeier Hansson2004-12-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@64 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added a better generator for scaffolding that actually creates the code, so ↵David Heinemeier Hansson2004-12-0736-112/+706
| | | | | | it can be edited bit by bit. See "script/generate scaffold" [bitsweat]. Added a whole new approach to generators that used the shared "script/generate" command. Run with no-args to see help [bitsweat]. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@63 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that ActiveRecordHelper#form now calls url_for on the :action option.David Heinemeier Hansson2004-12-073-4/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@62 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed a bug with the HEAD stuffDavid Heinemeier Hansson2004-12-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@61 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the Inflector to handle the movie/movies pair correctly #261 [Scott Baron]David Heinemeier Hansson2004-12-074-0/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@60 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Documentation bugsDavid Heinemeier Hansson2004-12-071-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@59 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added all the HTTP methods as alternatives to the generic "process" for ↵David Heinemeier Hansson2004-12-073-2/+54
| | | | | | functional testing #276 [Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@58 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added indifference to whether @headers["Content-Type"], ↵David Heinemeier Hansson2004-12-073-5/+18
| | | | | | @headers["Content-type"], or @headers["content-type"] is used. Added proper handling of HEAD requests, so that content isnt returned (Request#head? added as well) #277 [Eric Hodel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@57 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added bind-style variable interpolation for the condition arrays that uses ↵David Heinemeier Hansson2004-12-073-11/+32
| | | | | | the adapter's quote method [Michael Koziarski] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@56 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added CSV format for fixtures #272 [what-a-day]David Heinemeier Hansson2004-12-072-36/+145
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@55 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added access to custom headers, like cc, bcc, and reply-to #268 [Andreas ↵David Heinemeier Hansson2004-12-072-10/+33
| | | | | | Schwarz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@54 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed fixtures using primary key fields called something else than "id" #270 ↵David Heinemeier Hansson2004-12-062-1/+3
| | | | | | [dave] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@53 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added TestSession#session_id that returns an empty string to make it easier ↵David Heinemeier Hansson2004-12-062-0/+7
| | | | | | to functional test applications that doesn't use cookie-based sessions #275 [jcf] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@52 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Syntax errors and other exceptions thrown outside of an action are now ↵David Heinemeier Hansson2004-12-0612-52/+40
| | | | | | gracefully handled by the dispatcher git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@51 5ecf4fe2-1ee6-0310-87b1-e25e094e27de