Commit Graph

3925 Commits

Author SHA1 Message Date
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
Carlos Antonio da Silva
ded5f5b261 Revert some warning removals related to Ruby 2.0
These warnings were actually a bug in Ruby 2.0, the accessors should not
be raising such warnings, they are only meant for ivars.

-

Revert "fix warnings in Ruby 2.0"

This reverts commit 26702a6d3461f4a1c75165030b96886514ecb877.

-

Revert "Merge pull request #8282 from arunagw/warning_removed_for_ruby2"

This reverts commit f63d6544e45e78cda29c0c56fbdf3d9e1f405340, reversing
changes made to 3a890681fad8218305585036abed6d7463a44e41.
2013-01-07 19:46:14 -02:00
David Heinemeier Hansson
e63e280bed Use similar comment style 2013-01-07 10:13:47 +01: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
Yehuda Katz
d6c732ffd1 Merge pull request #8263 from senny/refactor_plugin_new_generator
refactor the naming within plugin new generator
2013-01-06 10:57:51 -08:00
Carlos Antonio da Silva
15971c3d51 Rescue from LoadError when trying to load the debugger gem for console
Avoid swallowing all exceptions that might happen when requiring
debugger, just catch a LoadError if it cannot be loaded.

Check for more background:
28fd867c9b (commitcomment-2386952)
2013-01-06 11:27:36 -02:00
Carlos Antonio da Silva
3abb76824b Move table routes formatter class to the inspector and rename it
It feels more consistent to have this class called "HtmlTableFormatter",
and to have it here with the routes inspector and console formatter,
since it's used for both routing error exceptions and the rails info
page.
2013-01-06 11:19:30 -02:00
Andrew White
f18078475e Merge pull request #8777 from goshakkk/delegate-class
Delegate to :class rather than 'self.class'
2013-01-06 05:00:54 -08:00
Carlos Antonio da Silva
a46e5ff793 Improve javascript in welcome page [ci skip] 2013-01-06 10:37:22 -02:00
David Heinemeier Hansson
e05a504acb This is not that common of a change to warrant top-line billing and you should read more about the consequences than just toggling a boolean to make best use of it 2013-01-06 12:42:51 +01:00
David Heinemeier Hansson
26365d03b9 Include the standard reminder that you need to restart for changes in config/initializers to take effect 2013-01-06 12:23:19 +01:00
Gosha Arinich
7a439d23de delegate to :class rather than 'self.class' 2013-01-06 12:43:30 +03:00
Akira Matsuda
253cdc8b5b Update generated app's README [ci skip]
* a controller that destroying Weblogs might be WeblogsController
* a controller that indexing Posts might be PostsController
* Post.all returns a Relation
* modernize Model.inspect results
2013-01-06 15:58:58 +09:00
Akira Matsuda
3e8134a750 The controller generator invokes assets generator in addition 2013-01-06 15:41:09 +09:00
Akira Matsuda
dc88d71d51 Fix generated migration file name in model generator USAGE 2013-01-06 15:41:06 +09:00
Gosha Arinich
732d3507da prefer do-end for multiline block 2013-01-06 02:01:22 +03:00
Rafael Mendonça França
23714ec33f Move config.filter_parameters to you own initializer file
This is very rarely changed and does not deserve to be in application.rb
2013-01-05 15:50:53 -03:00
David Heinemeier Hansson
516f148450 Needless fancy structure that did not anything 2013-01-05 19:11:22 +01:00
David Heinemeier Hansson
f17a631d79 Fix indention issue in generated template 2013-01-05 19:05:05 +01:00
David Heinemeier Hansson
f2c0e57581 Fix indention issue in generated template 2013-01-05 18:47:53 +01:00
David Heinemeier Hansson
3d08614826 No need to give an example where there is generated code right there to serve as the example 2013-01-05 18:04:30 +01:00
David Heinemeier Hansson
201f8d7753 config.assets.enabled is now true by default 2013-01-05 17:56:53 +01:00
Gosha Arinich
434d9cbd86 allow toggling about env, not just showing 2013-01-05 19:15:09 +03:00
Carlos Antonio da Silva
60e809cffd Move style to head to make routes page valid html5 2013-01-05 12:01:16 -02:00
Carlos Antonio da Silva
82023532d8 Redirect using action hash instead of hardcoding full route 2013-01-05 11:52:08 -02:00
Carlos Antonio da Silva
f2caf6e433 Change Rails Info controller to use the new table routes formatter 2013-01-05 11:48:50 -02:00
Yves Senn
af5c0fd85f split formatting concerns from RoutesInspector 2013-01-05 13:59:14 +01:00
Carlos Antonio da Silva
1e1c7afe3f Merge pull request #8737 from tricknotes/info-page-style
Fix info page style [ci skip]
2013-01-05 04:07:09 -08:00
Carlos Antonio da Silva
a8637c8f28 Merge pull request #8765 from mmb/join_table_usage
Add join table migration generator to usage help. [ci skip]
2013-01-05 04:03:01 -08:00
Rafael Mendonça França
107e5720fe Don't use Rails.root since it is not available at this point 2013-01-05 05:01:14 -03:00
Matthew M. Boedicker
d60ed3d401 Add join table migration generator to usage help. 2013-01-04 22:20:36 -08:00
Ryunosuke SATO
eb34327ab5 Don't use layout when requested from xhr 2013-01-05 12:09:10 +09:00
Carlos Antonio da Silva
28fd867c9b Remove unnecessary begin..rescue..end, use only rescue 2013-01-04 22:49:14 -02:00
Carlos Antonio da Silva
2269f43eb3 Move class method to instance in dbconsole
This method doesn't need to be in the class, since it's only used only
from the instance.
2013-01-04 22:49:14 -02:00
Rafael Mendonça França
fab7c53585 Merge pull request #8633 from mykola-kyryk/issue_8628
Allow environment name to start with a substring of the default
environment names.

Fixes #8628
2013-01-04 14:03:24 -08:00
Akira Matsuda
15fb7889c5 misleading error message that prompts non-existing command
[ci skip]
2013-01-05 05:05:12 +09:00
Akira Matsuda
d2b937b508 get rid of unused .empty_directory files in the app generator 2013-01-05 04:34:57 +09:00
Aditya Sanghi
2bacacd653 removed dangling whitespace in generated database yml 2013-01-04 21:04:57 +05:30
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
Franck Verrot
8ea480b516 Remove the fallback onto ActiveXObject("Microsoft.XMLHTTP"). 2013-01-04 09:41:39 +01:00
Guillermo Iguaran
a9511364e0 Merge pull request #8738 from amatsuda/frozen_rails
another tiny update on generated README
2013-01-03 23:27:04 -08:00
Ryunosuke SATO
37e250fcf9 Apply var keyword to js at welcome#index 2013-01-04 15:31:44 +09:00
Akira Matsuda
8ffac1c75a No such feature in Rails anymore. That's Bundler's business
[ci skip]
2013-01-04 08:46:35 +09:00
Akira Matsuda
86a48814a7 no, call <%= yield %> 2013-01-04 07:12:36 +09:00
Guillermo Iguaran
e5d4367e19 Merge pull request #8731 from amatsuda/readme_dir_tree
update directory tree in the generated README
2013-01-03 13:54:18 -08:00
Akira Matsuda
cd1cc47525 update directory tree in the generated README 2013-01-04 06:46:26 +09:00
Guillermo Iguaran
cb2bd4aa61 Merge pull request #8705 from amparo-luna/change_update_attributes_to_update
Rename update_attributes method to update
2013-01-03 09:09:59 -08:00
Amparo Luna + Guillermo Iguaran
0433d79724 Updating default application templates to use update instead of update_attributes 2013-01-03 12:04:25 -05:00
Akira Matsuda
1030b7b2d6 test PATCH method for update action in generated scaffold controller test rather than PUT 2013-01-03 20:21:18 +09:00