1. 12 6月, 2014 2 次提交
  2. 05 6月, 2014 1 次提交
    • S
      Emit suggested generator names when not found · 72f45ba2
      schneems 提交于
      When someone types in a generator command it currently outputs all generators. Instead we can attempt to find a subtle mis-spelling by running all generator names through a levenshtein_distance algorithm provided by rubygems. 
      
      So now a failure looks like this:
      
      ```ruby
      $ rails generate migratioooons
      Could not find generator 'migratioooons'. Maybe you meant 'migration' or 'integration_test' or 'generator'
      Run `rails generate --help` for more options.
      ```
      
      If the suggestions are bad we leave the user with the hint to run `rails generate --help` to see all commands.
      72f45ba2
  3. 01 6月, 2014 1 次提交
  4. 30 5月, 2014 1 次提交
  5. 27 5月, 2014 2 次提交
  6. 26 5月, 2014 1 次提交
    • S
      print generators on failed generate · e83ce84e
      schneems 提交于
      Let's say we just ran:
      
      ```
      $ rails g migrate add_click_to_issue_assignment
      ```
      
      We will get an error that looks like:
      
      ```
      Could not find generator migrate.
      ```
      
      This patch adds all existing migrations to the output to make it easier for a developer to find a valid migration.
      
      ```
      Could not find generator "migrate". Please select a valid generator:
      Rails:
        assets
        controller
        generator
        helper
        integration_test
        mailer
        migration
        model
        resource
        scaffold
        scaffold_controller
        task
      ```
      
      
      It would be nice to do some spelling detection and suggest alternatives, but for now this should  help.
      e83ce84e
  7. 25 5月, 2014 1 次提交
  8. 18 5月, 2014 3 次提交
  9. 13 5月, 2014 3 次提交
  10. 11 5月, 2014 1 次提交
  11. 08 5月, 2014 2 次提交
    • P
      Use Rails::Paths::Path#existent in database_configuration · d14fab04
      Pier-Olivier Thibault 提交于
      Database configuration was trying to load the first path that
      config.paths['config/database'] was returning even if the path didn't
      exist in the filesystem.
      
      Because Rails::Paths::Path has the possibility to return more than 1
      path (as an array), database_configuration should filter down the paths
      to the existing one and then load the first one.
      
      This would make it possible to move the database.yml file and add the
      new path to paths['config/database'] and still load the configurations.
      d14fab04
    • P
      d1fa1fc3
  12. 07 5月, 2014 1 次提交
  13. 02 5月, 2014 2 次提交
  14. 28 4月, 2014 1 次提交
  15. 24 4月, 2014 1 次提交
    • M
      Precompile the image we're referencing, too. · 4f31b776
      Matthew Draper 提交于
      You can't compile a file that references a non-compiled asset's path.
      
      .. unless you turn off asset runtime errors.
      
      Outside of a test case like this, `config.assets.precompile` would
      normally retain its default entry, which precompiles all images (and
      other non-JS/CSS files) that are in `app/assets`.
      4f31b776
  16. 15 4月, 2014 2 次提交
  17. 11 4月, 2014 1 次提交
  18. 10 4月, 2014 2 次提交
  19. 09 4月, 2014 3 次提交
  20. 08 4月, 2014 1 次提交
  21. 05 4月, 2014 1 次提交
  22. 02 4月, 2014 1 次提交
    • M
      Revise 'sqlite3:' URL handling for smoother upgrades · f846828d
      Matthew Draper 提交于
      Restore the 4.0 behaviour for 'sqlite3:///', but deprecate it. We'll
      change to the absolute-path interpretation in 4.2.
      
      The current "correct" spellings for in-memory, relative, and absolute
      URLs, respectively, are:
      
          sqlite3::memory:
          sqlite3:relative/path
          sqlite3:/full/path
      
      Substantially reverses/defers fbb79b51.
      Uncovered by @guilleiguaran while investigating #14495, though that
      sounds like a different issue.
      f846828d
  23. 27 3月, 2014 1 次提交
  24. 25 3月, 2014 1 次提交
    • K
      Fix Generation of proper migration when · 5a3817cb
      Kuldeep Aggarwal 提交于
        ActiveRecord::Base.pluralize_table_names = false.
      
        Previously, generation a migration like this:
      
            rails g migration add_column_name_to_user name
      
        would not generating the correct table name.
      
      Fixes #13426.
      5a3817cb
  25. 24 3月, 2014 2 次提交
  26. 21 3月, 2014 1 次提交
  27. 20 3月, 2014 1 次提交