1. 25 3月, 2013 1 次提交
  2. 25 2月, 2013 2 次提交
  3. 01 2月, 2013 1 次提交
  4. 17 1月, 2013 1 次提交
  5. 11 1月, 2013 1 次提交
  6. 08 1月, 2013 1 次提交
  7. 07 1月, 2013 1 次提交
  8. 06 1月, 2013 2 次提交
  9. 19 12月, 2012 1 次提交
  10. 11 12月, 2012 1 次提交
    • S
      Use Rails to Render Default Index Page · baea5d69
      schneems 提交于
      This is an alternative implementation to #7771 thanks to the advice of @spastorino
      
      Rails is a dynamic framework that serves a static index.html by default. One of my first questions ever on IRC was solved by simply deleting my public/index.html file. This file is a source of confusion when starting as it over-rides any set "root" in the routes yet it itself is not listed in the routes. By making the page dynamic by default we can eliminate this confusion.
      
      This PR moves the static index page to an internal controller/route/view similar to `rails/info`. When someone starts a rails server, if no root is defined, this route will take over and the "dynamic" index page from rails/welcome_controller will be rendered. These routes are only added in development. If a developer defines a root in their routes, it automatically takes precedence over this route and will be rendered, with no deleting of files required. 
      
      In addition to removing this source of confusion for new devs, we can now use Rails view helpers to build and render this page. While not the primary intent, the added value of "dogfooding" should not be under-estimated.
      
      The prior PR #7771 had push-back since it introduced developer facing files. This PR solves all of the same problems, but does not have any new developer facing files (it actually removes one). 
      
      cc/ @wsouto, @dickeyxxx, @tyre, @ryanb, @josevalim, @maxim, @subdigital, @steveklabnik
      
      ATP Railties and Actionpack.
      baea5d69
  11. 04 11月, 2012 1 次提交
  12. 19 10月, 2012 1 次提交
  13. 16 10月, 2012 1 次提交
  14. 15 10月, 2012 1 次提交
  15. 11 10月, 2012 1 次提交
  16. 10 10月, 2012 1 次提交
    • M
      Update test locations · 2a68f68a
      Mike Moore 提交于
      Change the default test locations to avoid confusion around the common
      testing terms "unit" and "functional".
      Add new rake tasks for the new locations, while maintaining backwards
      compatibility with the old rake tasks.
      
      New testing locations are as follows:
      
          app/models -> test/models (was test/units)
          app/helpers -> test/helpers (was test/units/helpers)
          app/controllers -> test/controllers (was test/functional)
          app/mailers -> test/mailers (was test/functional)
      2a68f68a
  17. 02 10月, 2012 1 次提交
  18. 22 9月, 2012 1 次提交
  19. 17 9月, 2012 2 次提交
  20. 13 9月, 2012 1 次提交
    • D
      change app/plugin generators to be more SCM agnostic · ceb05bd1
      Derek Prior 提交于
      Users of other SCM's can now generate rails
      apps that will add the "empty" directories to source control,
      but will not have a useless .gitignore or mis-named .gitkeep
      files.
      
      * Change `rails new` and `rails plugin new` generators to name
        the `.gitkeep` as `.keep` in a more SCM-agnostic way.
      
      * Change `--skip-git` option to only skip the `.gitignore` file
        and still generate the `.keep` files.
      
      * Add `--skip-keeps` option to skip the `.keep` files.
      
      It closes #2800.
      ceb05bd1
  21. 11 8月, 2012 2 次提交
    • J
      09d2671c
    • J
      Remove the dependent_restrict_raises option. · 5ad79989
      Jon Leighton 提交于
      It's not really a good idea to have this as a global config option. We
      should allow people to specify the behaviour per association.
      
      There will now be two new values:
      
      * :dependent => :restrict_with_exception implements the current
        behaviour of :restrict. :restrict itself is deprecated in favour of
        :restrict_with_exception.
      * :dependent => :restrict_with_error implements the new behaviour - it
        adds an error to the owner if there are dependent records present
      
      See #4727 for the original discussion of this.
      5ad79989
  22. 08 8月, 2012 1 次提交
  23. 31 5月, 2012 1 次提交
  24. 14 5月, 2012 3 次提交
  25. 08 5月, 2012 1 次提交
  26. 02 5月, 2012 1 次提交
  27. 17 4月, 2012 1 次提交
  28. 10 4月, 2012 1 次提交
  29. 02 4月, 2012 1 次提交
    • P
      Usage file in generators shouldn't be fetched only based on source_root · fff3e75e
      Piotr Sarnacki 提交于
      In case `source_roout` is not set, `default_source_root` is used,
      which includes also `templates` directory. If there is no `templates`
      directory, `default_source_root` is not available and USAGE will not
      be displayed. USAGE should be also checked based on default
      directory excluding `templates`.
      fff3e75e
  30. 21 3月, 2012 1 次提交
  31. 18 3月, 2012 1 次提交
  32. 15 3月, 2012 1 次提交
  33. 14 3月, 2012 2 次提交