aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
Commit message (Collapse)AuthorAgeFilesLines
* Fixes usage message when running rails without --dev on a cloned rails repoSantiago Pastorino2010-07-261-1/+1
|
* application generation: --skip-testunit and --skip-activerecord renamed to ↵Xavier Noria2010-07-254-14/+14
| | | | | | | | --skip-test-unit and --skip-active-record respectively Reason is their proper spellings are "Test::Unit" and "Active Record". Option names and descriptions have been revised, as well as some method names and minor details here and there.
* This example is better for guides and gem/plugins docsSantiago Pastorino2010-07-201-7/+0
|
* minor pass to generated code in application.rb related to :defaultsXavier Noria2010-07-161-3/+3
|
* Adds application.js when app is generated with -J and clear ↵Santiago Pastorino2010-07-172-0/+5
| | | | javascript_expansions[:defaults]
* Explain how to change javascript default filesSantiago Pastorino2010-07-171-0/+3
|
* upgrade prototype to be compatible with rails.js [#5109 state:committed]Andrew Kaspick2010-07-141-890/+2017
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* Fixed many references to the old config/environment.rb and Rails::InitializerBenjamin Quorning2010-07-131-2/+2
|
* application.rb: revises the comment for autoload_paths so that is assumes ↵Xavier Noria2010-07-091-3/+3
| | | | less from the user, and unifies punctuation
* Merge remote branch 'docrails/master'Xavier Noria2010-07-072-2/+2
|\
| * Fixed typo in Rails::Generators::Base [#5051 state:resolved]Mark Hayes2010-07-061-1/+1
| |
| * Fixes README for generated apps with Rails 3 (rails *new* myapp, and Welcome ↵Jaime Iniesta2010-07-011-1/+1
| | | | | | | | aboard text)
* | Avoid calls to Rails::Application since this is not the official API.José Valim2010-07-013-4/+4
|/ | | | Your application should *always* reference your application const (as Blog::Application) and Rails.application should be used just internally.
* Change :notification to :notify (ht: m4n)José Valim2010-06-291-1/+1
|
* Create a deprecation behavior that triggers a notification for deprecation ↵wycats2010-06-293-0/+9
| | | | | | | | | | | | | | | | | notices, and make the behaviors independent of the environment names. * In Rails 2.3 apps being upgraded, you will need to add the deprecation configuration to each of your environments. Failing to do so will result in the same behavior as Rails 2.3, but with an outputted warning to provide information on how to set up the setting. * New Rails 3 applications generate the setting * The notification style will send deprecation notices using ActiveSupport::Notifications. Third-party tools can listen in to these notifications to provide a streamlined view of the deprecation notices occurring in your app. * The payload in the notification is the deprecation warning itself as well as the callstack from the point that triggered the notification.
* Make the sentinel flag for route a bit more robust.José Valim2010-06-281-1/+1
|
* Do not trigger the old mapper to avoid deprecation messages.José Valim2010-06-281-1/+1
|
* Update to latest rails.jsJeremy Kemper2010-06-271-57/+114
| | | | [#4411 state:resolved]
* Change the generated Gemfile to resolve, via documentation, the issue of ↵wycats2010-06-251-3/+4
| | | | rspec generators being unavailable in development mode
* Remove the --singeleton option from scaffold generator.Prem Sichanugrist2010-06-246-27/+2
| | | | | | | | It turned out to be that scaffold for singeleton resource will always depend on another model, and it's not possible at the moment to make the application tests pass after generate the singeleton scafold. So, it would be better to remove it for now and probably provide another generator, such as singeleton_scaffold, in which also require the depended model name. [#4863 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* renames load_(once_)paths to autoload_(once_)paths in dependencies and configXavier Noria2010-06-241-1/+1
|
* Patch for Namespace problem in Scaffold. [#4763 state:resolved]Mohammed Siddick.E2010-06-2312-60/+79
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Changed `ruby /path/to/rails myapp --dev` to `ruby /path/to/rails new myapp ↵Jeff Kreeftmeijer2010-06-211-1/+1
| | | | | | --dev` in the "Thor is not avalable" message. [#4915 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* remove executable permission from files that don't need it. [#4802 ↵rohit2010-06-201-0/+0
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Strip trailing whitespace from generated applications [#4905 state:resolved]Chris Griego2010-06-205-8/+8
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Make polymorphic_url and scaffolding work with uncountable resources [#3930 ↵Andrew White2010-06-206-5/+13
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Adds a few connection parameters for IBM databases.Antonio Cangiano2010-06-181-24/+36
| | | | | | [#3852] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Create mailers folder when starting a new rails appLawrence Curtis2010-06-121-0/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Rails::Generators::GeneratedAttribute: tests, cleanups and a bugfix [#4631 ↵Jeff Kreeftmeijer2010-06-102-9/+24
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove outdated section on web servers that didnt really tell you much anywayDavid Heinemeier Hansson2010-06-091-26/+1
|
* Remove needless links and search box and update doc linksDavid Heinemeier Hansson2010-06-091-17/+0
|
* You dont have to manually mention the application layout, its automatically usedDavid Heinemeier Hansson2010-06-091-1/+0
|
* Readme file changes:Rizwan Reza2010-06-051-56/+23
| | | | | | | * Took out stuff that's not relevant (or useful) anymore. * Some formatting. * Added helpful links to get started with Rails. * Took out Apache htaccess tutorial since we aren't teaching Apache here.
* Merge branch 'master' of git://github.com/rails/railsRizwan Reza2010-06-053-5/+7
|\
| * Missed fixing the banner on the Usage output for ThorMikel Lindsaar2010-06-041-1/+1
| | | | | | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
| * Changing command line API from 'rails blog' to 'rails new blog'.Mikel Lindsaar2010-06-042-4/+3
| | | | | | | | | | | | | | | | | | | | Also removed the limitation of not being able to call your new server any of the rails commands (generate, server, dbconsole, console etc) as there is no longer any ambiguity here. http://rails.lighthouseapp.com/projects/8994/tickets/4665 Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
| * You need the ruby-debug available in your Gemfile for debugger to workDavid Heinemeier Hansson2010-06-021-0/+3
| |
* | Improve Rails README [#4740 state:resolved]Matt Di Pasquale2010-06-051-119/+189
|/ | | | Signed-off-by: Rizwan Reza <rizwanreza@gmail.com>
* Removing Metal from Rails 3. wycats2010-05-294-32/+1
| | | | | | | | | | | | | | | | | | | | If you have existing Metals, you have a few options: * if your metal behaves like a middleware, add it to the middleware stack via config.middleware.use. You can use methods on the middleware stack to control exactly where it should go * if it behaves like a Rack endpoint, you can link to it in the router. This will result in more optimal routing time, and allows you to remove code in your endpoint that matches specific URLs in favor of the more powerful handling in the router itself. For the future, you can use ActionController::Metal to get a very fast controller with the ability to opt-in to specific controller features without paying the penalty of the full controller stack. Since Rails 3 is closer to Rack, the Metal abstraction is no longer needed.
* performance and integration tests inherit from AD, not ACGonçalo Silva2010-05-282-2/+2
| | | | Signed-off-by: wycats <wycats@gmail.com>
* refactor evals and adds some __FILE__ and __LINE__Santiago Pastorino2010-05-201-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Added rails command aliases (s g c db) to reserved words in app generator ↵Aleksandr Koss2010-05-161-1/+1
| | | | | | [#4602 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Rename assert_attribute_type to asser_field_type.José Valim2010-05-161-3/+3
|
* Added assert_attribute_type to clean up GeneratedAttributeTest [#2377 ↵Jeff Kreeftmeijer2010-05-161-0/+12
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* using :time_select when the attribute type is :time in the scaffold ↵Jeff Kreeftmeijer2010-05-161-6/+7
| | | | | | generator. [#2377 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Bundler deprecated options in Gemfile with application template using method ↵Adrian Sanchez2010-05-151-1/+2
| | | | | | "gem" [#4534 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Expand paths to app builders relative to the working directoryCarl Lerche2010-05-061-1/+4
|
* Merge commit 'rails/master'Xavier Noria2010-05-017-164/+262
|\ | | | | | | | | Conflicts: railties/guides/source/index.html.erb
| * Fix a bug in the generators from the previous commitCarl Lerche2010-04-301-1/+1
| |
| * Provide a mechanism for overriding the entire generator via a class that ↵Carlhuda2010-04-301-57/+85
| | | | | | | | handles the individual elements of generating a new Rails application