Commit Graph

115 Commits

Author SHA1 Message Date
Yves Senn
a58e660837 Use "Fixes" in place of "Fix" in changelogs for consistency [ci skip]. 2013-03-09 20:57:17 +01:00
Stanislav
40f1642b67 New beauty pages(404, 422, 500)
moving changelog note to unreleased section

New beauty pages(404, 422, 500)
2013-03-02 00:24:54 +06:00
Rafael Mendonça França
0f75e2c51f Update CHANGELOGS 2013-02-26 13:45:57 -03:00
David Heinemeier Hansson
c0bc9ce38c Preparing for 4.0.0.beta1 release 2013-02-25 08:31:50 -06:00
Hendy Tanata
82e345dd7a Improve rake stats for JavaScript and CoffeeScript.
Ignore block comments and calculates number of functions.
2013-02-25 21:08:11 +08:00
Prem Sichanugrist
2da5ea1c9f Remove --builder option from rails command
Ability to use a custom builder by passing `--builder` (or `-b`) has
been removed. Consider using application template instead. See this
guide for more detail:
http://guides.rubyonrails.org/rails_application_templates.html
2013-02-24 14:31:08 -05:00
Yves Senn
6bd1cae459 Revert "move config.assets.precompile into config/application.rb"
This reverts commit 304f4d4c25ccabdbf97d37dd7a92a54d0b63a9c9.

As it turns out everything should behave as it did and we don't
need to move this configuration option.
2013-02-24 18:01:43 +01:00
Rafael Mendonça França
b85f63bbd0 Merge pull request #9341 from senny/move_precompiled_asset_config_to_application
move config.assets.precompile into config/application.rb
2013-02-20 08:18:08 -08:00
Yves Senn
304f4d4c25 move config.assets.precompile into config/application.rb 2013-02-20 15:53:37 +01:00
Terence Lee
b1de1892bc update changelog 2013-02-21 01:25:05 +11:00
Andrew White
9d9b22f47a Revert "Deprecate the eager_load_paths configuration"
Because of the possibility of lib being unintentionally eager loaded
it's been agreed that we'll leave autoload paths and eager load paths
separate for Rails 4.0.

This reverts commit 0757b3388ffe4f44b60de950d40e18ef05055931.

Conflicts:
	railties/CHANGELOG.md
2013-02-19 07:22:37 +00:00
Carlos Antonio da Silva
7765ee0e47 Add changelog entry for #9177 [ci skip]
Add test:all and test:all:db rake tests to speed up full test runs.
2013-02-11 11:25:13 -02:00
Rahul P. Chaudhari
afdb84a1fe Added notice message for destroy method in scaffold 2013-02-10 01:19:02 +05:30
Amparo Luna
5f1dc8e3b7 Add --rc option to support the load of a custom rc file 2013-02-01 23:17:41 -05:00
Amparo Luna
a1e1af9b21 Add --no-rc option to skip the loading of railsrc file 2013-01-31 19:30:47 -05:00
Rafael Mendonça França
9826823e66 Merge pull request #8303 from jeremywrowe/master
Fixes improper database name when creating a new rails app with a '.'

Conflicts:
	railties/CHANGELOG.md
2013-01-25 10:21:48 -02:00
Andrew White
0757b3388f Deprecate the eager_load_paths configuration
Since the default in Rails 4.0 is to run in 'threadsafe' mode we need
to eager load all of the paths in `autoload_paths` so we alias
`eager_load_paths` to it. This may have unintended consequences if
you have added 'lib' to `autoload_paths` such as loading unneeded
code or code intended only for development and/or test environments.
If this applies to your application you should thoroughly check what
is being eager loaded.
2013-01-24 23:54:41 +00:00
Rafael Mendonça França
19bd2f2279 Merge pull request #8557 from timraymond/add_back_engines_and_deprecate
Adding Back Rails::Engine::Railties#engines

Conflicts:
	railties/CHANGELOG.md
2013-01-22 00:00:20 -02:00
Matt Bridges
08ac4b9672 clear specific logs when using rake log:clear 2013-01-16 17:12:32 -06:00
Jeremy W. Rowe
c45980fe6e Fixes improper database name when a '.' is included while creating a new rails
application. EG: `rails new something.awesome.com`
Conflicts:
	railties/CHANGELOG.md
2013-01-16 15:12:31 -06:00
Brian D. Burns
5a9b3b7a74 allow :dirs option for .enumerate
Allows custom rake tasks to be defined using:

  SourceAnnotationExtractor.enumerate 'TODO|FIXME', dirs: %w(app lib), tag: true
2013-01-15 14:14:05 -05:00
Carlos Antonio da Silva
2549a3b088 Deprecate Rails::Generators::ActiveModel#update_attributes
Deprecate #update_attributes in favor of `#update`.

ORMs that implement `Generators::ActiveModel#update_attributes` should change
to `#update`. Scaffold controller generators should change calls like:

    @orm_instance.update_attributes(...)

to:

    @orm_instance.update(...)

This goes along with the addition of `ActiveRecord::Base#update`,
introduced in cb2bd4aa619d9329c42aaf6d9f8eacc616ce53f4.
2013-01-12 10:52:13 -02:00
Carlos Antonio da Silva
39a88f6f0e Add changelog entry for scaffold generator and jbuilder changes
Introduced in 3bfd99defb559af0b017ee920ca714aa1e367fdd.
Related to #8840.

[ci skip]
2013-01-11 09:27:48 -02:00
Xavier Noria
6cf47c533d new README generated for new apps 2013-01-08 00:50:56 +01:00
Xavier Noria
553b6958dc doc/README_FOR_APP is no longer generated 2013-01-08 00:50:56 +01:00
Jeremy Kemper
2c9d129fb4 Take the heat 🔥 2013-01-06 21:53:30 -07:00
Jeremy Kemper
009873aec8 Introduce ./bin for your app's executables: bin/bundle, bin/rails, bin/rake. Executable scripts are versioned code like the rest of your app. To generate a stub for a bundled gem: 'bundle binstubs unicorn' and 'git add bin/unicorn' 2013-01-06 21:41:36 -07:00
Rafael Mendonça França
9665f5e46c Remove the content_tag_for change from CHANGELOG since it was reverted 2013-01-05 18:14:58 -03:00
David Heinemeier Hansson
201f8d7753 config.assets.enabled is now true by default 2013-01-05 17:56:53 +01:00
Carlos Antonio da Silva
149b86d97b Move changelog entry in railties to the top
Other minor changelog improvements [ci skip]
2013-01-04 22:49:14 -02:00
Matt Bridges
216d5fd8f6 Small typo fix in railties/CHANGELOG.md 2013-01-04 16:08:28 -06:00
Mykola Kyryk
4fa6088b42 This commit fixes issue #8628
Allow environment name to start with a substring of the default
environment names.
For example: tes, pro, prod, dev, devel, etc.

Fixing identation.

Adding test for Rails::Console.parse_arguments method.

Fix issue 8628 for Rails::DBConsole.
2013-01-04 17:05:49 +02:00
Tim Raymond
48d5a33269 Adding Back Rails::Engine::Railties#engines
Removing it breaks functionality with gems such as Thinking Sphinx.
This restores it with a deprecation warning. Closes #8551
2013-01-03 14:00:32 -05:00
Jiri Pospisil
fc7b8d38c1 Add missing changelog entry for #8676 [ci skip] 2013-01-02 11:41:35 +01:00
Yves Senn
edae4777ad quote column names in generated fixture files 2012-12-26 16:17:47 +01:00
Rafael Mendonça França
33e52d379e Explicit options should have precedence over railsrc on the rails new
command

Closes #8545
2012-12-24 00:03:13 -03:00
Jeremy Kemper
f9da785d0b Move background jobs to the 'jobs' branch until fully baked. Not shipping with Rails 4.0. 2012-12-21 16:29:47 -08:00
Andy Lindeman
33b3fa67c4 Revert "Make sure that RAILS_ENV is set when accessing Rails.env"
This reverts commit b3125c89f42968bec6ee0b92ab93e36dbc36d5c3.

* It is not desirable to set `ENV['RAILS_ENV']`; otherwise, it will leak
  through to rake tasks such as `rake test` or `rake spec`. See #7175
  for more details.
2012-12-21 17:22:57 -05:00
Marc-Andre Lafortune
a81845f268 Update Migration and 4.0 Release Guides, Changelogs [#8267] 2012-12-21 13:56:16 -05:00
Francesco Rodriguez
b565a7a3b4 fix railties CHANGELOG [ci skip] 2012-12-18 16:18:29 -05:00
Rafael Mendonça França
7f96e4317e Revert "Merge pull request #7587 from elia/fix-too-eager-loading"
This reverts commit 3663057518eb9acf9b1e72f47dcb07038e6b7368.

REASON: This caused a regression that add app folder in the eager load
path. See #8146 for more information.

Conflicts:
	railties/CHANGELOG.md
2012-12-18 16:05:30 -03:00
David Heinemeier Hansson
15c40b2ef5 Fix changelog 2012-12-18 16:32:11 +01:00
David Heinemeier Hansson
09aeee7247 Merge 2012-12-18 16:29:00 +01:00
David Heinemeier Hansson
f6bbc3f582 Add app/models/concerns and app/controllers/concerns to the default directory structure and load path 2012-12-18 16:26:08 +01:00
schneems
8a59b87374 HTML formatting to Rails::InfoController#routes
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
2012-12-17 12:41:54 -06:00
Carlos Antonio da Silva
df9f9b7f3e Convert changelogs to 1.9 hash style and fix some formatting [ci skip] 2012-12-14 20:25:22 -02:00
schneems
baea5d69be Use Rails to Render Default Index Page
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.
2012-12-10 16:15:04 -08:00
kennyj
a7695579a5 Add ENV['RACK_ENV'] support to rake runner/console/server. 2012-12-06 02:05:33 +09:00
Antonio Cangiano
553b563749 Add db to the list of default annotation folders 2012-12-01 12:23:39 -08:00
Yves Senn
a1fd9cd1a0 require bundler groups to include rake-tasks in engines
If you generate a full engine, this will include rake tasks from
your gem under the `app` namespace. For example if you have a dependency
on `rspec-rails` in your engine's `gemspec`. You will get the task `app:spec`

Closes #8229
2012-11-18 18:03:27 +01:00