aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use attr_accessor for Rails.{application,cache,logger}Bjørn Arild Mæland2012-12-011-23/+1
|
* Merge pull request #8382 from asanghi/mailerguideVijay Dev2012-12-011-1/+52
|\ | | | | Add Mailer Callback section to Mailer guides
| * Add Mailer Callback section to Mailer guidesAditya Sanghi2012-12-021-1/+52
| |
* | Remove not used variable warnignsCarlos Antonio da Silva2012-12-012-5/+5
|/
* Merge pull request #8391 from rmascarenhas/reset-attribute-doesnt-change-itRafael Mendonça França2012-12-013-3/+9
|\ | | | | Reset attributes should not report changes.
| * Reset attributes should not report changes.Renato Mascarenhas2012-12-013-3/+9
| | | | | | | | | | | | | | | | | | | | | | When resetting an attribute, you expect it to return to the state it was before any changes. Namely, this fixes this unexpected behavior: ~~~ruby model.name = "Bob" model.reset_name! model.name_changed? #=> true ~~~
* | Merge pull request #8379 from steveklabnik/validations_guideVijay Dev2012-12-014-347/+342
|\ \ | |/ |/| Validations guide
| * Here's a few updates to the validations guide. A bunch of small changes,Steve Klabnik2012-12-014-347/+342
|/ | | | | | | | plus: * 80 column formats * replacing the explanation of the dynamic_form gem with the example HTML/CSS that Rails scaffolds generate.
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-12-0140-261/+299
|\ | | | | | | | | Conflicts: guides/source/active_record_validations.md
| * copy edits [ci skip]Vijay Dev2012-12-012-2/+2
| |
| * Fix Calculations#pluck doc to mention several attributes can be selected [ci ↵Florent Guilleux2012-12-011-3/+3
| | | | | | | | skip]
| * Normalize on 'After reading this guide, you will know:'Steve Klabnik2012-11-2937-28/+80
| | | | | | | | | | We have three or four different introduction sentences to the guides. After this commit, we use the same one everywhere.
| * nodoc AS::Deprecation::InstanceDelegator class [ci skip]Francesco Rodriguez2012-11-291-3/+3
| |
| * add documentation to CollectionProxy #length and #size methods [ci skip]Francesco Rodriguez2012-11-291-2/+7
| |
| * add documentation to CollectionProxy#empty?Francesco Rodriguez2012-11-291-1/+6
| |
| * Asset Pipeline: add 'the'Steve Klabnik2012-11-291-2/+2
| | | | | | | | | | | | Some guides work without 'the'. For instance, 'Migrations' or 'Form Helpers.' But when we talk about the asset pipeline, we... always say 'the asset pipeline.' The guide title should reflect this.
| * Command Line: remove 'A Guide to'Steve Klabnik2012-11-291-2/+2
| | | | | | | | It's obvious that this is a guide.
| * Migrations: add 'Active Record' to titleSteve Klabnik2012-11-291-2/+2
| | | | | | | | | | Other guides that talk about Active Record specific features include the name of the library in the title, this one should too for consistency.
| * 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.