aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
Commit message (Collapse)AuthorAgeFilesLines
* Remove Rdoc formatting from markdown [ci skip]Harshad Sabne2013-11-291-1/+1
| | | Use markdown formatting instead
* Fix on-site markdown rendering [ci skip]Harshad Sabne2013-11-281-1/+1
|
* Underscore in markdown should be escaped with backslash [ci skip]Harshad Sabne2013-11-261-1/+1
| | | In the absence of proper escaping the first link was getting messed up and remaining part of the sentence (2nd link) was not displayed in the rendered markdown on the website though it was displaying correctly in the repository markdown file.
* Globalize has moved to a new repositoryHarshad Sabne2013-11-251-1/+1
| | | From (svenfuchs/globalize3) to (globalize/globalize)
* Merge remote-tracking branch 'docrails/master'Xavier Noria2013-11-249-78/+98
|\ | | | | | | | | | | Conflicts: activesupport/lib/active_support/core_ext/hash/deep_merge.rb activesupport/lib/active_support/core_ext/hash/keys.rb
| * a couple of copy-edits before merging [ci skip]Xavier Noria2013-11-241-3/+2
| |
| * API Documentation Guidelines link correction [ci skip]Harshad Sabne2013-11-231-1/+1
| |
| * Improve reading / style of hashes in AR guideCarlos Antonio da Silva2013-11-191-5/+5
| |
| * Revert last two commits mistakenly changing join/include syntaxCarlos Antonio da Silva2013-11-191-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | --- Revert "syntax error joining/including models" This reverts commit ac35f72f30c47298a20a90c8c537db888b463bbb. --- Revert "syntax error joining tables" This reverts commit c365986b48c3e8bc8c7f3fa6a8521616ed5dc138. --- Comments: https://github.com/rails/docrails/commit/c365986b48c3e8bc8c7f3fa6a8521616ed5dc138#commitcomment-4630684
| * syntax error joining/including modelsSergio2013-11-181-2/+2
| | | | | | syntax error joining/including models
| * syntax error joining tablesSergio2013-11-181-5/+5
| | | | | | syntax error joining tables
| * Update action_controller_overview.md [ci skip]Harshad Sabne2013-11-151-1/+1
| | | | | | Code style adherence
| * Fix broken Wikipedia link.Harshad Sabne2013-11-131-1/+1
| |
| * Remove outdated guide on using rack builder w/o rails middlewareAlex Johnson2013-11-131-20/+0
| | | | | | | | [ci skip]
| * Correct guide relating MiddlewareStackProxy with EnumerableAlex Johnson2013-11-131-5/+4
| | | | | | | | | | | | | | | | [ci skip] Enumerable.instance_methods & Rails::Configuration::MiddlewareStackProxy.instance_methods # => [:as_json] MiddlewareStackProxy does not share any notable methods with Enumerable.
| * [ci skip] Replace #=> with # =>Alex Johnson2013-11-123-17/+17
| |
| * Fix RailsServer#start content in initialization guideAlex Johnson2013-11-121-17/+23
| | | | | | | | [ci skip]
| * Add section for command_tasks in initialization guideAlex Johnson2013-11-081-12/+42
| | | | | | | | [ci skip]
| * Update commands.rb content in initialization guideAlex Johnson2013-11-081-2/+8
| | | | | | | | [ci skip]
* | Helper should be a module in Rails guides [ci skip]Martin Harrigan2013-11-231-1/+1
| |
* | Added a missing close parenthesis to i18n.mdJacob Evan Shreve2013-11-211-1/+1
| |
* | Fix ActiveRecord::Relation#unscopeJon Leighton2013-11-201-16/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm pretty confused about the addition of this method. The documentation says that it was intended to allow the removal of values from the default scope (in contrast to #except). However it behaves exactly the same as except: https://gist.github.com/jonleighton/7537008 (other than having a slightly enhanced syntax). The removal of the default scope is allowed by 94924dc32baf78f13e289172534c2e71c9c8cade, which was not a change we could make until 4.1 due to the need to deprecate things. However after that change #unscope still gives us nothing that #except doesn't already give us. However there *is* a desire to be able to unscope stuff in a way that persists across merges, which would allow associations to be defined which unscope stuff from the default scope of the associated model. E.g. has_many :comments, -> { unscope where: :trashed } So that's what this change implements. I've also corrected the documentation. I removed the guide references to #except as I think unscope really supercedes #except now. While we're here, there's also a potential desire to be able to write this: has_many :comments, -> { unscoped } However, it doesn't make sense and would not be straightforward to implement. While with #unscope we're specifying exactly what we want to be removed from the relation, with "unscoped" we're just saying that we want it to not have some things which were added earlier on by the default scope. However in the case of an association, we surely don't want *all* conditions to be removed, otherwise the above would just become "SELECT * FROM comments" with no foreign key constraint. To make the above work, we'd have to somehow tag the relation values which get added when evaluating the default scope in order to differentiate them from other relation values. Which is way too much complexity and therefore not worth it when most use cases can be satisfied with unscope. Closes #10643, #11061.
* | Update caching guide with respect to :namespaceJonathan Baudanza2013-11-191-1/+1
| | | | | | | | Cache::Store does not have a default value for :namespace. If it ever did, I can't find it in the git history.
* | Fixed typos in shallow routes and routing concernsBen Lewis2013-11-181-2/+2
| | | | | | | | Grammatical tense correction: "There exists two" => "There exist two". Plurality correction: "can be reused inside others resources" => "can be reused inside other resources".
* | Instrument each load config initializerPaul Nikitochkin2013-11-161-0/+9
| | | | | | | | | | | | In order to simplify profiling loading of initializers, added instument for tracking load config initializer event from `config/initializers`
* | [ci skip] typo in ArgumentError exceptionPeter Vandenabeele2013-11-161-1/+1
| |
* | Merge pull request #12907 from JuanitoFatas/upgradingRafael Mendonça França2013-11-151-9/+10
|\ \ | | | | | | [ci skip] Update gem versions for 3.2 and 3.1. Also change some words.
| * | [ci skip] Update gem versions for 3.2 and 3.1. Also change some words.Juanito Fatas2013-11-161-9/+10
| | |
* | | Change Relation#all to Relation#load [ci skip]Sıtkı Bağdat2013-11-151-1/+1
| | |
* | | Merge pull request #10848 from 907th/add_block_to_cattr_readerRafael Mendonça França2013-11-151-0/+9
|\ \ \ | | | | | | | | Fix #10847: allow to pass a block to `cattr_reader`.
| * | | Unify `cattr_*` interface: allow to pass a block to `cattr_reader`.Alexey Chernenkov2013-11-151-0/+9
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Example: class A cattr_reader(:defr) { 'default_reader_value' } end A.defr # => 'default_reader_value'
* / / Remove broken Commmand Line guide linkNate Berkopec2013-11-151-2/+0
|/ / | | | | [ci skip]
* | Make it clear that require 'active_support' is required [ci-skip]Godfrey Chan2013-11-131-1/+4
| |
* | Revert "`remove_column` does not take a type argument. [ci skip]. Closes #12864"Yves Senn2013-11-131-1/+1
| | | | | | | | | | | | | | As of Rails 4.0 `remove_column` is no longer an alias for `remove_columns`. The type is actually valid and used when issuing a rollback (new `change` method). This reverts commit 9c9d4948e428a226a19aa92c17fa6ac5833c2fb8.
* | [ci skip] Fix curl response output and use strong parameters in update action.Juanito Fatas2013-11-131-4/+3
| |
* | `remove_column` does not take a type argument. [ci skip]. Closes #12864Yves Senn2013-11-121-1/+1
| |
* | Merge pull request #12815 from Adam89/patch-1Xavier Noria2013-11-111-1/+1
|\ \ | | | | | | Update security.md [ci skip]
| * | Update security.mdAdam2013-11-081-1/+1
| | | | | | | | | | | | | | | | | | Hi Guys I was reading through this guide last night and noticed a small mistake, would be great if you could update it. I changed the word 'building' to 'build' in line 20. "Web application frameworks are made to help developers building web applications"
* | | Fixed typo in migrations guideJimmy Petersen2013-11-111-1/+1
| | | | | | | | | | | | | | | Product model name was pluralized in example in migrations guide. [ci skip]
* | | Fixed minor typoJens Dahl Møllerhøj2013-11-091-1/+1
|/ / | | | | | | | | | | instead of 'rake test' as shortcut, use 'rake'. Closes #12780 [ci skip]
* | :scissors: fix broken url [ci skip]Gaurish Sharma2013-11-091-2/+1
| |
* | removes redundant curly brackets in example code [ci skip]Xavier Noria2013-11-081-1/+1
| |
* | Merge pull request #12609 from corwinkelly/patch-1Xavier Noria2013-11-081-3/+1
|\ \ | |/ |/| Update workaround for "Outside the Scope of Strong Parameters"
| * Fix undefined method error for NilClasscorwinkelly2013-10-231-1/+1
| | | | | | Add .try to prevent undefined method error for NilClass.
| * Update workaround for "Outside the Scope of Strong Parameters" corwinkelly2013-10-221-3/+1
| | | | | | The previous example of how to permit a hash of unknown keys used .tap, but had the side effect of logging an "Unpermitted parameters" message despite being a successful workaround. The proposed workaround is ever so slightly better, imo, because it won't result in an "Unpermitted parameters" message being logged.
* | Merge branch 'master' of github.com:rails/docrailsVijay Dev2013-11-078-37/+76
|\ \
| * | Update Rails initialization guide to explain how bin/rails is executedAlex Johnson2013-11-061-3/+36
| | |
| * | Fixed code syntax for config.ru [ci skip]Rashmi Yadav2013-11-041-1/+1
| | |
| * | exists? is deprecated in ruby trunk [ci skip]Rashmi Yadav2013-11-012-4/+4
| | | | | | | | | see here 4d4ff531b8807ee88a3fc46875c7e76f613956fb
| * | guides/rails_on_rack: Fix formatting of _Internal Middleware Stack_ sectionZachary Scott2013-10-281-23/+23
| | |