aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
Commit message (Collapse)AuthorAgeFilesLines
...
* | reflects changes in 34cd7e2 in the index [ci skip]Xavier Noria2015-01-051-3/+3
| |
* | [guides] Added newer find_by syntax example in 4.2 release notes for ↵Gordon Chan2015-01-051-0/+3
| | | | | | | | Adequate Record [skip ci]
* | Remove debugger supportRafael Mendonça França2015-01-041-1/+0
| | | | | | | | | | bebugger doesn't work with Ruby 2.2 so we don't need to support it anymore
* | Add missing information regarding callbacksMax Katz2015-01-041-1/+1
| |
* | Merge pull request #17227 from claudiob/explicitly-abort-callbacksRafael Mendonça França2015-01-032-0/+24
|\ \ | | | | | | | | | | | | | | | | | | Introduce explicit way of halting callback chains by throwing :abort. Deprecate current implicit behavior of halting callback chains by returning `false` in apps ported to Rails 5.0. Completely remove that behavior in brand new Rails 5.0 apps. Conflicts: railties/CHANGELOG.md
| * | Add config to halt callback chain on return falseclaudiob2015-01-022-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This stems from [a comment](rails#17227 (comment)) by @dhh. In summary: * New Rails 5.0 apps will not accept `return false` as a way to halt callback chains, and will not display a deprecation warning. * Existing apps ported to Rails 5.0 will still accept `return false` as a way to halt callback chains, albeit with a deprecation warning. For this purpose, this commit introduces a Rails configuration option: ```ruby config.active_support.halt_callback_chains_on_return_false ``` For new Rails 5.0 apps, this option will be set to `false` by a new initializer `config/initializers/callback_terminator.rb`: ```ruby Rails.application.config.active_support.halt_callback_chains_on_return_false = false ``` For existing apps ported to Rails 5.0, the initializers above will not exist. Even running `rake rails:update` will not create this initializer. Since the default value of `halt_callback_chains_on_return_false` is set to `true`, these apps will still accept `return true` as a way to halt callback chains, displaying a deprecation warning. Developers will be able to switch to the new behavior (and stop the warning) by manually adding the line above to their `config/application.rb`. A gist with the suggested release notes to add to Rails 5.0 after this commit is available at https://gist.github.com/claudiob/614c59409fb7d11f2931
* | | Remove the tmp/sessions folder and its clear taskRobin Dupret2015-01-033-15/+13
| |/ |/| | | | | | | | | | | | | | | | | Commit 1aea470 introduced this directory but this was at a time when the default way to store sessions was on the file system under the tmp directory. Let's remove references to it from the documentation as well. [Robin Dupret & yui-knk]
* | Merge branch 'master' of github.com:rails/docrailsVijay Dev2015-01-031-1/+0
|\ \
| * | [ci skip] :scissors: a blank line from code (Active Job Guide).Juanito Fatas2015-01-021-1/+0
| | |
* | | Avoid displaying new lines inside note paragraphsRobin Dupret2015-01-032-2/+10
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | Commit 65a2977 added a `pre-wrap` style for white spaces on `.note` paragraphs. However, this is first inconsistent as other notes like warnings don't have this style applied. Furthermore, it seems to be unneeded for mobile devices. Also revert changes made in #18147 since they aren't needed anymore. Cross-refs #18138. [ci skip]
* | Deprecate `MissingSourceFile` in favor of `LoadError`.Rafael Mendonça França2015-01-021-3/+3
| | | | | | | | | | `MissingSourceFile` was just an alias to `LoadError` and was not being raised inside the framework.
* | Revert part of 996e646bd8cff3bcf2b13863439f48d3e744cdae [ci skip]Zachary Scott2015-01-022-3/+1
| |
* | Merge pull request #17974 from killthekitten/fix-render-blockRafael Mendonça França2015-01-021-0/+36
|\ \ | | | | | | | | | | | | | | | | | | Make possible to use blocks with short version of render partial Conflicts: actionview/CHANGELOG.md
| * | Make possible to use blocks with short version of render partialNikolay Shebanov2014-12-191-0/+36
| | |
* | | Remove support to activerecord-deprecated_findersRafael Mendonça França2015-01-021-2/+0
| | |
* | | Including links to earlier releases guides (4.1.8 and 4.0.12) [ci skip]Lucas Caton2015-01-021-0/+2
| | |
* | | Updating guides for Rails 5.0 [ci skip]Lucas Caton2015-01-025-17/+24
| | |
* | | fix rake command typo in Testing guide [ci skip]yuuji.yaginuma2014-12-311-1/+1
| | |
* | | Merge pull request #18274 from rajcybage/spell_fixRobin Dupret2014-12-311-2/+2
|\ \ \ | | | | | | | | Fix spell life cycle on activejob docs [ci skip]
| * | | Fix spell life cycle on activejob docs [ ci skip]Rajarshi Das2014-12-311-2/+2
| | | |
* | | | Update Getting Started guide to reflect foreign key in migration [ci skip]Jennifer Wollesen2014-12-301-0/+3
| | | |
* | | | Add Profiling guide skeleton [ci skip]Zachary Scott2014-12-302-0/+22
| | | |
* | | | Move Engines guide under Extending Rails [ci skip]Zachary Scott2014-12-301-5/+5
| | | |
* | | | The Guide to Testing Rails Applications is published! :tada: :tada: [ci skip]Zachary Scott2014-12-302-5/+9
| | | |
* | | | Replace exhaustive list of methods with pointer to API docs. [ci skip]Zachary Scott2014-12-301-11/+1
| | | |
* | | | Add result of running articles_routes_test and point to more information forZachary Scott2014-12-301-0/+16
| | | | | | | | | | | | | | | | RoutingAssertions. [ci skip]
* | | | Move request tests after functional and before views, and move helper testsZachary Scott2014-12-301-50/+50
| | | | | | | | | | | | | | | | after views. [ci skip]
* | | | Make "Testing Views" separate section, move "Setup and Teardown" intoZachary Scott2014-12-301-88/+85
| | | | | | | | | | | | | | | | | | | | | | | | functional testing section and implement :show, :destroy, and :update tests. [ci skip]
* | | | Add implement integration test to Testing Guide. [ci skip]Zachary Scott2014-12-301-0/+75
| | | |
* | | | Replace exhaustive list of helper methods with pointers to helper classes foundZachary Scott2014-12-301-16/+7
| | | | | | | | | | | | | | | | in the Action Dispatch Integration module. [ci skip]
* | | | Remove this line which was added by accident [ci skip]Zachary Scott2014-12-301-2/+0
| | | |
* | | | Move Rake tasks list to a smaller heading section earlier in the guide.Zachary Scott2014-12-291-21/+21
| | | | | | | | | | | | | | | | | | | | It makes more sense here, rather than after explaining all of the testing facilities of Rails. [ci skip]
* | | | Condense notes regarding Minitest and its available assertions removed in:Zachary Scott2014-12-291-38/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 82b75eda70f8c30f7c418e7350532a3a0ed2a8c3 Also explain how Rails inherits capabilities from Minitest. Test classes should be roughly the same based on this information, we can address them at a high level when introducing the first test case. [ci skip]
* | | | Remove redundant information about Minitest, which is already covered whenZachary Scott2014-12-291-8/+0
| | | | | | | | | | | | | | | | assertions are introduced. [ci skip]
* | | | Move longer form example from integration guide to api reference, below anZachary Scott2014-12-291-74/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | existing example. [ci skip] My reasoning is that this is probably too much information for the complete Rails testing guide, as we're trying to cover testing all aspects of the framework.
* | | | Grammar pass through Integration Testing section [ci skip]Zachary Scott2014-12-291-3/+3
| | | |
* | | | Remove pre-4.2 comment about missing `assert_select` [ci skip]Zachary Scott2014-12-291-2/+0
| | | |
* | | | Update link to rails-dom-testing documentation [ci skip]Zachary Scott2014-12-291-1/+1
| | | |
* | | | Pass through `assert_select` testing guide [ci skip]Zachary Scott2014-12-291-4/+9
| | | |
* | | | Implement testing `flash` notices into our blog app [ci skip]Zachary Scott2014-12-291-3/+62
| | | |
* | | | Pass through Testing Templates and Layouts section [ci skip]Zachary Scott2014-12-291-11/+13
| | | |
* | | | These are technically objects [ci skip]Zachary Scott2014-12-291-2/+2
| | | |
* | | | Rephrase Four Hashes of the Apocalypse [ci skip]Zachary Scott2014-12-291-1/+1
| | | |
* | | | Compare http request type with test equivalent methods, and application ↵Zachary Scott2014-12-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | use-cases. Briefly explain difference between Functional and Request type tests. [ci skip]
* | | | Document the include_all_helpers config setting.Adam Prescott2014-12-291-0/+2
| | | | | | | | | | | | | | | | | | | | This config setting has been available for quite a while but was not documented.
* | | | Rephrase functional testing in its relation to Rails Controller Unit Testing.Zachary Scott2014-12-291-1/+1
| | | | | | | | | | | | | | | | [ci skip]
* | | | Un-inline if statementJosh Cheek2014-12-291-1/+3
| | | | | | | | | | | | | | | | | | | | The single line was long enough that it rendered on two lines, causing the example to look like syntactically invalid code.
* | | | adjust args of Bundler.require in guides [ci skip]Yosuke2014-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Arguments of Bundler.require of generator has been changed from rails4.0.4. https://github.com/rails/rails/blob/v4.0.4/railties/lib/rails/generators/rails/app/templates/config/application.rb#L16
* | | | Minor documentation edits [ci skip]Robin Dupret2014-12-284-12/+13
| | | |
* | | | Add a note about non-buffering servers for AC::LiveAditya Kapoor2014-12-271-0/+5
| | | | | | | | | | | | | | | | [ci skip]