1. 09 12月, 2015 1 次提交
  2. 08 12月, 2015 1 次提交
  3. 07 12月, 2015 1 次提交
    • G
      Introduce after_{create,update,delete}_commit callbacks · 5a300b2e
      Genadi Samokovarov 提交于
      Those are actually shortcuts for `after_commit`.
      
      Before:
      
          after_commit :add_to_index_later, on: :create
          after_commit :update_in_index_later, on: :update
          after_commit :remove_from_index_later, on: :destroy
      
      After:
      
          after_create_commit  :add_to_index_later
          after_update_commit  :update_in_index_later
          after_destroy_commit :remove_from_index_later
      5a300b2e
  4. 02 12月, 2015 1 次提交
  5. 30 11月, 2015 1 次提交
  6. 28 11月, 2015 1 次提交
  7. 26 11月, 2015 1 次提交
  8. 24 11月, 2015 1 次提交
  9. 23 11月, 2015 1 次提交
  10. 22 11月, 2015 1 次提交
  11. 19 11月, 2015 4 次提交
    • A
      Fix a typo · 60d60b05
      Alex Popov 提交于
      60d60b05
    • R
      Change configuration-guide example · 35138b15
      rbr 提交于
      Use an example from a default Rails app (4.2.5) rather than an outdated one in the Configuring Rails Components section.
      I picked config.time_zone as it currently is the only 'setting for Rails' left in a default config/application.rb.
      
      I stumbled upon this with investigating autoloading in a legacy app, which still included the example comment "# config.autoload_paths += %W(#{config.root}/extras)". Usually adding app/* directories to autoload_paths isn't necessary, so also finding this example within the current docs was a bit confusing initially.
      
      [ci skip]
      35138b15
    • Y
      guides, scaffold no longer used in getting started guide. Closes #22337. · 58df2f4b
      Yves Senn 提交于
      [ci skip]
      
      Since the "Getting Started" guide no longer uses the scaffold generator
      we should rewrite references to that in the testing guide.
      
      The functional testing section was quite heavily based on such a
      scaffold test. I changed it to use `generate scaffold_controller`
      instead so that we can build up on the model foundation we already have.
      58df2f4b
    • Z
      [ci skip] Indentation in cache examples · 03a7a990
      zacharywelch 提交于
      03a7a990
  12. 18 11月, 2015 3 次提交
  13. 17 11月, 2015 1 次提交
  14. 16 11月, 2015 2 次提交
  15. 15 11月, 2015 1 次提交
  16. 14 11月, 2015 1 次提交
  17. 13 11月, 2015 2 次提交
    • T
      [ci skip] add `controller:` argument to routing.md · 3fccecb8
      the-undefined 提交于
      Passing a `Symbol` to the `to:` argument for a `get` route requires a `controller` argument to also be defined.
      The documentation is missing the `controller:` argument, which leaving out raises a routing exception:
      
      ```ruby
      get 'profile', to: :show
      ```
      
      ```
      $ rake routes
      ArgumentError: Missing :controller key on routes definition, please check your routes.
      ```
      
      Adding the `controller:` argument maps the route correctly:
      
      ```ruby
      get 'profile', to: :show, controller: 'users'
      ```
      ```
      $ rake routes
      profile GET    /profile(.:format)  users#show
      ```
      3fccecb8
    • C
      Improved explanation · 2ae24ddc
      Claudi Martinez 提交于
      2ae24ddc
  18. 11 11月, 2015 2 次提交
  19. 09 11月, 2015 6 次提交
  20. 07 11月, 2015 4 次提交
  21. 06 11月, 2015 2 次提交
  22. 05 11月, 2015 2 次提交