aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix title of 'form helpers' guide.Steve Klabnik2012-11-291-2/+2
| | | | | | They're Rails Guides, so obviously we're talking about Rails Form Helpers. Also, 'helpers' should be capitalized.
* Associations: s/A Guide//Steve Klabnik2012-11-291-2/+2
| | | | It's obvious that this is a guide, and none of the other guides say 'A Guide to'.
* Remove 'This guide is based on ' warnings.Steve Klabnik2012-11-294-9/+0
| | | | It's obvious that the guide is based on this version of Rails, and may not be backwards compatible.
* Add periods to the bullet points in guides.Steve Klabnik2012-11-2928-126/+126
| | | | Talked with @fxn about this. Bullet points should have periods at the ends.
* Migrations: Fix opening bullets.Steve Klabnik2012-11-291-2/+2
| | | | The wording of these was a bit off, so I fixed them.
* ActionView -> Action ViewSteve Klabnik2012-11-291-2/+2
| | | | The proper name has a space.
* ActionController -> Action ControllerSteve Klabnik2012-11-291-2/+2
| | | | The proper name has a space.
* ActiveSupport -> Active SupportSteve Klabnik2012-11-291-4/+4
| | | | The proper name has a space.
* ActionMailer -> Action Mailer.Steve Klabnik2012-11-291-2/+2
| | | | The proper name for the library has a space.
* ActionPack -> Action Pack.Steve Klabnik2012-11-291-1/+1
| | | | The proper name has a space.
* ActiveRecord -> Active RecordSteve Klabnik2012-11-295-6/+6
| | | | | The proper name, as per the documentation guides, is 'Active Record.' I've updated several references to it as 'ActiveRecord'.
* Migrations: move massive paragraph out of intro.Steve Klabnik2012-11-291-10/+19
| | | | | | | Most of the guides have a few simple sentences describing what they will show you at the top. This one had a few big paragraphs. I've moved those paragraphs down to an introductory one, and written a new smaller one for the introduction. This makes this guide more consistent with the others.
* Getting Started: Improve instructions on opening a terminalSteve Klabnik2012-11-291-1/+4
|
* Getting Started: remove reference to attr_accessibleSteve Klabnik2012-11-291-11/+0
|
* Getting Started: mac -> Mac OS XSteve Klabnik2012-11-291-1/+1
| | | | It's properly called "Mac OS X"
* Getting Started: Rails 3.2 -> Rails 4.Steve Klabnik2012-11-291-1/+1
| | | | This is based on Rails 4, not Rails 3.2.
* Revert "correct css selector for the display of validation error messages: ↵Xavier Noria2012-11-281-4/+4
| | | | | | | | changed #error_explanation to #errorExplanation" At least in master the selector is snake case. This reverts commit ba2fed41613e02bb6cfc46c92ace00abb99ce313.
* Clarifies the cookie store docs a bit and uses correct Markdown syntax for ↵Andy Lindeman2012-11-271-1/+1
| | | | preformatted text
* Adding a note about :inverse_of for validations.Steve Klabnik2012-11-271-0/+8
| | | | From https://github.com/lifo/docrails/commit/cfd324b4b68469ba3188e4b7ba8586e59b239693\#commitcomment-2213592
* Fix validation based on object not _id.Steve Klabnik2012-11-271-2/+2
| | | | From https://github.com/rails/rails/issues/6161\#issuecomment-10750118
* correct css selector for the display of validation error messages: changed ↵Harper Henn2012-11-271-4/+4
| | | | #error_explanation to #errorExplanation
* Set fixed-width style where appropriate on Getting Started guide.Hendy Tanata2012-11-271-2/+2
|
* Merge pull request #119 from c0/masterCaleb Wright2012-11-251-1/+1
|\ | | | | Clarification to ActiveRecord Validations Doc in 7.2 Custom Methods
| * Update guides/source/active_record_validations_callbacks.mdCaleb Wright2012-11-251-1/+1
|/ | | In the expiration_date_cannot_be_in_the_past validation method, use `expiration_date.present?` instead of the double negative `!expiration_date.blank?`. Also join the comparisons with `&&` instead of `and`, which could cause unintended consequences.
* Revert "Updated with where functional/helper tests go"Jason Noble2012-11-251-2/+2
| | | | | | This reverts commit c94cfdad6388dcdfaf4c10b9e8cee46baf2a7901. * This is the new 4.0 (master) directory structure
* Reword Post model to note there are lines not shownJason Noble2012-11-241-1/+2
|
* We should use post_path, not post_urlJason Noble2012-11-241-1/+1
|
* Updated with where functional/helper tests goJason Noble2012-11-241-2/+2
|
* Moved position of has_manyJason Noble2012-11-241-2/+3
|
* Added new line to make it more readableJason Noble2012-11-241-1/+2
| | | | * This shows the reader there is a method: and data: parameters
* Changed the Using Partials section to read a little betterJason Noble2012-11-241-25/+4
| | | | * No need to give a simple example, as we have a partial that we create in the blog app
* Modified "Allowing the update of fields" sectionJason Noble2012-11-241-12/+6
| | | | | | | * Rails generate model Post ______ creates the attr_accessible line for you for any fields you specify. Changed the section to describe what this line in the model does.
* Update version numbers of Ruby and RailsJason Noble2012-11-241-2/+2
|
* Updated link to RubyGems siteJason Noble2012-11-241-1/+1
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-11-233-4/+4
|\
| * fixed a minor spelling errorLennart Tange2012-11-201-1/+1
| |
| * embed code example using backticks in caching guideSergey Nartimov2012-11-201-2/+2
| |
| * remove previous commitMichel Grootjans2012-11-201-1/+1
| |
| * bug in example '<%= form_for ...' should be '<% form_for ...'Michel Grootjans2012-11-201-1/+1
| |
| * Fix broken link in Active Record Query Interface guideJaime Iniesta2012-11-181-1/+1
| |
* | Merge pull request #8291 from senny/8265_build_with_polymorphic_associationRafael Mendonça França2012-11-223-1/+15
|\ \ | | | | | | | | | | | | | | | | | | prevent mass assignment of polymorphic type when using `build` Conflicts: activerecord/CHANGELOG.md
| * | prevent mass assignment of polymorphic type when using `build`Yves Senn2012-11-223-1/+15
| | | | | | | | | | | | Closes #8265
* | | Indent changelog markdown code to highlight correctlyCarlos Antonio da Silva2012-11-221-11/+11
| | | | | | | | | | | | [ci skip]
* | | Merge pull request #8114 from guilleiguaran/use-symbols-in-scopeAndrew White2012-11-223-1/+43
|\ \ \ | | | | | | | | Allow setting a symbol as path in scope on routes
| * | | Allow setting a symbol as path in scope on routesGuillermo Iguaran2012-11-213-1/+43
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Was surprising found that this example doesn't work: scope :api do resources :users end and the right form to use it is: scope 'api' do resources :users end I think this should work similary as `namespace` where both are allowed. These two are equivalent: namespace :api do resources :users end namespace 'api' do resources :user end
* | | Remove private partial/template renderer methodsCarlos Antonio da Silva2012-11-213-14/+3
| | | | | | | | | | | | | | | | | | Since now these objects are not cached anymore, there's no need to have these private methods, just instantiate each of them in the necessary place.
* | | Merge branch 'deprecate-calculations-with-block'Carlos Antonio da Silva2012-11-216-49/+25
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Follow up of the discussion from the original merge commit: https://github.com/rails/rails/commit/f9cb645dfcb5cc89f59d2f8b58a019486c828c73#commitcomment-1414561 We want to avoid people's mistakes with methods like count and sum when called with a block, that can easily lead to code performing poorly and that could be way better written with a db query. Please check the discussion there for more background. Closes #8268
| * | | Remove the #sum method from CollectionAssociationCarlos Antonio da Silva2012-11-211-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Since edd94cee9af1688dd036fc58fd405adb30a5e0da, CollectionProxy delegates all calculation methods - except count - to the scope, which does basically what this method was doing, but since we're delegating from the proxy, the association method was never called.
| * | | Deprecate Relation#sum with a block.Carlos Antonio da Silva2012-11-215-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | To perform a sum calculation over the array of elements, use to_a.sum(&block). Please check the discussion in f9cb645dfcb5cc89f59d2f8b58a019486c828c73 for more context.
| * | | Revert "Yield only one argument instead of splatting."Carlos Antonio da Silva2012-11-213-37/+3
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit f9cb645dfcb5cc89f59d2f8b58a019486c828c73. Conflicts: activerecord/CHANGELOG.md Revert "Allow blocks for count with ActiveRecord::Relation. Document and test that sum allows blocks" This reverts commit 9cc2bf69ce296b7351dc612a8366193390a305f3. Conflicts: activerecord/lib/active_record/relation/calculations.rb