aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
Commit message (Collapse)AuthorAgeFilesLines
* application generation: --skip-testunit and --skip-activerecord renamed to ↵Xavier Noria2010-07-251-6/+6
| | | | | | | | --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.
* Makes test use the new config.action_view.javascript_expansions[:defaults] ↵Santiago Pastorino2010-07-171-1/+1
| | | | initialization syntax
* Adds application.js when app is generated with -J and clear ↵Santiago Pastorino2010-07-171-1/+6
| | | | javascript_expansions[:defaults]
* Remove the --singeleton option from scaffold generator.Prem Sichanugrist2010-06-242-22/+0
| | | | | | | | 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-3/+3
|
* Patch for Namespace problem in Scaffold. [#4763 state:resolved]Mohammed Siddick.E2010-06-231-0/+106
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add test for migration generator with name not starting with add or remove. ↵rohit2010-06-201-0/+15
| | | | | | [#4835 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com>
* Make polymorphic_url and scaffolding work with uncountable resources [#3930 ↵Andrew White2010-06-201-0/+10
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Tidy up generators based on latest change on AM.José Valim2010-06-131-2/+2
|
* Test create mailers folder when starting a new appDamien Mathieu2010-06-121-0/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* layout 'application' is not anymore on application_controllerSantiago Pastorino2010-06-101-2/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Rails::Generators::GeneratedAttribute: tests, cleanups and a bugfix [#4631 ↵Jeff Kreeftmeijer2010-06-101-10/+81
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix generator test broken when rails new was added.José Valim2010-06-081-3/+1
|
* Still copy application configuration to generator even if they are required ↵José Valim2010-06-031-2/+5
| | | | earlier. Also tidy up the guide a little bit.
* Remove the laziness from the middleware stack.José Valim2010-06-032-2/+2
|
* Removing Metal from Rails 3.wycats2010-06-031-17/+0
| | | | | | | | | | | | | | | | | | | | | 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.
* Tests for new reserved words [#4602 state:resolved]Simon Jefford2010-05-161-2/+7
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Rename assert_attribute_type to asser_field_type.José Valim2010-05-161-7/+7
|
* Added assert_attribute_type to clean up GeneratedAttributeTest [#2377 ↵Jeff Kreeftmeijer2010-05-161-0/+40
| | | | | | 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-2/+12
| | | | | | "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-0/+8
|
* Provide a mechanism for overriding the entire generator via a class that ↵Carlhuda2010-04-301-38/+96
| | | | handles the individual elements of generating a new Rails application
* Set up app generator class to make it easier to for alt-stacks to override ↵Carlhuda2010-04-301-0/+4
| | | | targeted areas
* Update generators to use thor 0.13.6 with simpler source_root handling.José Valim2010-04-301-1/+1
|
* Reorganize the mailer generator a bit.José Valim2010-04-301-1/+1
|
* Move ActionMailer generator to AMCarlhuda2010-04-291-1/+2
|
* Update thor dependency to 0.13.5José Valim2010-04-291-1/+1
|
* warn user if options are given before application name [#3435 state:resolved]Ravinder Singh2010-04-291-0/+5
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Make the migration generator handle pre-existing migrations with the same ↵Phil Smith2010-04-191-0/+13
| | | | | | | | | | timestamp. In the event a migration already exists with that number, the new migration's timestamp will be incremented by 1. [#4412 state:resolved] Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Generate module file for namespaced models [#4230 state:resolved]Andrew White2010-04-121-0/+8
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Partially revert "A new application now comes with a layout and a stylesheet."Jeremy Kemper2010-04-093-0/+26
| | | | | | | | | This reverts commit ea2c5fa8046e2f953b366adc94f0610ccfea0828. Conflicts: railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb railties/test/generators/app_generator_test.rb
* Include app name in layout titleJeremy Kemper2010-04-091-2/+2
|
* A new application now comes with a layout and a stylesheet.José Valim2010-04-064-26/+7
|
* Load generators from both lib/rails/generators and lib/generators. Using the ↵José Valim2010-03-2320-20/+20
| | | | former since it's less obstrusive.
* Controller generators should use routes shortcut.José Valim2010-03-221-1/+1
|
* Killing fixtures in mailer before they kill me (they usually lead to very ↵José Valim2010-03-221-3/+5
| | | | brittle tests).
* Also revert mailer generator test changes in 8b50f89Jeremy Kemper2010-03-211-2/+2
|
* Fix regression introduced in 8b50f89. Generated views mentioned the wrong path.Jeremy Kemper2010-03-211-2/+2
|
* Make ERB generators more flexible and customizable.José Valim2010-03-211-4/+4
|
* Controller generator now creates routes as well [#4233 state:resolved]José Valim2010-03-194-20/+16
|
* removed useless require lineSebastian Martinez2010-03-191-3/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Use human_name in scaffold.José Valim2010-03-171-0/+18
|
* In app_generator, fix hardcoded `bundle` call to derive the bundle ↵Caio Chassot2010-03-121-2/+3
| | | | | | | | executable name from Thor::Util.ruby_command. This ensures that eg. when `rails` is called from `ruby1.9`, `bundle1.9` is called. Signed-off-by: José Valim <jose.valim@gmail.com>
* Add a check to ensure that the application name does not already exist, i.e. ↵Kieran Pilkington2010-03-121-0/+7
| | | | | | String or Module are part of ruby [#3872 status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* the folder public/javascripts should be created by default [#4027 ↵Ramon Soares2010-02-261-0/+1
| | | | | | status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Add readme as method in Rails::Generators::Actions (as we had in 2.3)José Valim2010-02-171-0/+6
|
* Invalid namespace on app generation raises an errorKyle Maxwell2010-02-171-0/+5
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix a couple failing tests.José Valim2010-02-101-4/+2
|
* Fixes unescaped version passthrough of generator 'gem' command. [#3901 ↵Michael Bleigh2010-02-101-0/+18
| | | | | | status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Debrittlize tests somewhat - fix for CI buildMikel Lindsaar2010-02-101-5/+5
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>