- 19 12月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
This reverts commit 36630575. REASON: This caused a regression that add app folder in the eager load path. See #8146 for more information. Conflicts: railties/CHANGELOG.md
-
- 18 12月, 2012 1 次提交
-
-
由 schneems 提交于
This PR adds formatting and meta-data to the display of the internal routes. Users can now toggle between showing helpers with the `_path` or _`url` suffix. There are multiple ways to achieve this, this method uses partials for formatting and meta-data. The partials can be re-used when rendering `routing_error.erb`, though that will need to be in a separate PR. ![](http://f.cl.ly/items/3A2p3c1T1t2f2X2R2K2S/Screen%20Shot%202012-12-12%20at%202.28.01%20PM.png) ATP Railties
-
- 15 12月, 2012 1 次提交
-
-
由 Steve Klabnik 提交于
This reverts commit 6bdc0462. This has been reverted because https://github.com/rails/rails/commit/8554537e48d6ed18ef08cb3ac0a9da96ac3c5cd6
-
- 14 12月, 2012 2 次提交
-
-
由 Andrew White 提交于
Remove all the old url helper methods when clear! is called on the route set because it's possible that some routes have been removed.
-
由 Carlos Antonio da Silva 提交于
Related to the HTML route inspector changes: ae68fc38
-
- 13 12月, 2012 1 次提交
-
-
由 Arun Agrawal 提交于
-
- 11 12月, 2012 2 次提交
-
-
由 Rafael Mendonça França 提交于
attributes
-
由 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.
-
- 10 12月, 2012 7 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
database
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
fixtures
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
generator
-
由 Rafael Mendonça França 提交于
This is a test for 978c568a
-
- 09 12月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
- 08 12月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
-
- 07 12月, 2012 4 次提交
-
-
由 Andrew White 提交于
This reverts commit c59734f7.
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
Before: Finished tests in 56.245787s, 0.2133 tests/s, 0.0000 assertions/s. 12 tests, 0 assertions, 0 failures, 0 errors, 0 skips After: Finished tests in 42.401416s, 0.2830 tests/s, 0.0000 assertions/s. 12 tests, 0 assertions, 0 failures, 0 errors, 0 skips
-
由 Andrew White 提交于
This commit inverts the precedence in ActionDispatch::Static so that dynamic content will be served before static content. This is so that precompiled assets do not inadvertently get included when running in development mode - it should have no effect in production where static files are usually handled by the web server. Closes #6421
-
- 06 12月, 2012 3 次提交
-
-
由 Carlos Antonio da Silva 提交于
This cleanup aims to fix a build failure: https://travis-ci.org/rails/rails/jobs/3515951/#L482 Since travis always have both ENV vars set to "test", a test is failing where it's expected to output the default env "development", but "test" is the result due to RACK_ENV being set when we expect it to not be. By cleaning this duplication we ensure that changing any of these env variables will pick the right expected value.
-
由 Carlos Antonio da Silva 提交于
[ci skip]
-
由 kennyj 提交于
-
- 03 12月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
Related to changes introduced in 553b5637
-
- 02 12月, 2012 3 次提交
-
-
由 Antonio Cangiano 提交于
-
由 Florent Guilleux 提交于
This reverts commit 90c887fa.
-
由 Florent Guilleux 提交于
-
- 29 11月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
They was extracted from a plugin. See https://github.com/rails/rails-observers [Rafael Mendonça França + Steve Klabnik]
-
- 27 11月, 2012 2 次提交
-
-
由 Rashmi Yadav 提交于
-
由 Carlos Antonio da Silva 提交于
-
- 19 11月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
When using sqlite3 it was attempting to find the database file based on Rails.root, the problem is that Rails.root is not always present because we try to first manually load "config/database.yml" instead of loading the entire app, to make "rails db" faster. This means that when we're in the root path of the app, calling "rails db" won't allow us to use Rails.root, making the command fail for sqlite3 with the error: ./rails/commands/dbconsole.rb:62:in `start': undefined method `root' for Rails:Module (NoMethodError) The fix is to simply not pass any dir string to File.expand_path, which will make it use the current directory of the process as base, or the root path of the app, which is what we want. When we are in any other subdirectory, calling "rails db" should work just fine, because "config/database.yml" won't be found, thus "rails db" will fallback to loading the app, making Rails.root available. Closes #8257.
-
- 17 11月, 2012 3 次提交
-
-
由 Santiago Pastorino 提交于
This allows easy upgrading from the old signed Cookie Store <= 3.2 or the deprecated one in 4.0 (the ones that doesn't use key derivation) to the new one that signs using key derivation
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
- 14 11月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 11 11月, 2012 2 次提交
-
-
由 Arun Agrawal 提交于
-
由 Nicolas Despres 提交于
Sometimes your git directory is an ancestor of your application root directory. For example: ./repo/.git/ ./repo/app/Rakefile In this case rake test:uncommitted will be unable to detect your SCM. This patch fixes this and add a test.
-
- 10 11月, 2012 1 次提交
-
-
由 Arun Agrawal 提交于
-
- 08 11月, 2012 1 次提交
-
-
由 Yves Senn 提交于
Closes #8121 The `plugin new` generator always adds the dummy app rake tasks, when a dummy app was created.
-