aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator/generators/components
Commit message (Collapse)AuthorAgeFilesLines
* Fixed migration generation for class names like ACLController (closes #5197) ↵David Heinemeier Hansson2006-07-051-1/+1
| | | | | | [brad@madriska.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4553 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Generate scaffold layout in subdirectory appropriate to its module nesting. ↵Jeremy Kemper2006-07-011-1/+5
| | | | | | Closes #5511. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4527 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove opts.on { |options[:option_name] } style hash assignment. Closes #4440.Nicholas Seckar2006-06-281-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4502 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include uninstall.rb (closes #5003)David Heinemeier Hansson2006-06-061-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4440 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added uninstall.rb hook to plugin handling, such that plugins have a way of ↵David Heinemeier Hansson2006-06-031-0/+1
| | | | | | removing assets and other artifacts on removal (closes #5003) [takiuchi@drecom.co.jp] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4427 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add generator files...Marcel Molina2006-05-234-0/+43
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4365 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Session migration generator obeys pluralize_table_names. Closes #5145.Jeremy Kemper2006-05-222-4/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4360 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Change the scaffolding layout to use yield rather than @content_for_layout.Marcel Molina2006-04-251-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4263 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Beef up the default test just a tadDavid Heinemeier Hansson2006-03-251-0/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4035 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add an integration test generatorJamis Buck2006-03-253-0/+34
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4027 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* My beautiful eyes [DHH]David Heinemeier Hansson2006-03-202-8/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3993 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make generation of namespaced models produce proper migrations #4219 [Caio ↵David Heinemeier Hansson2006-03-181-2/+2
| | | | | | Chassot] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3947 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Doc fix (closes #4209) [Caio Chassot]David Heinemeier Hansson2006-03-182-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3945 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add verification to scaffolds (generated and reflection based). Require ↵Michael Koziarski2006-03-142-1/+9
| | | | | | POST for unsafe actions [Michael Koziarski]. Closes #2601 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3864 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont generate migration when doing scaffoldingDavid Heinemeier Hansson2006-03-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3775 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Migrations created alongside models should be called CreateModels not ↵David Heinemeier Hansson2006-03-051-2/+2
| | | | | | AddModels for consistency with the create/drop notion of tables [Dave Thomas] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3771 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Migrations should use symbols now that the schema dumper is switching to ↵David Heinemeier Hansson2006-03-041-3/+3
| | | | | | that as well [Suggested by Robby Russel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3763 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Stop annoying me when Im changing fixtures for other tests firstDavid Heinemeier Hansson2006-02-281-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3709 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* rake appdoc fails with unrecognized option (closes #3757) [Jakob S]David Heinemeier Hansson2006-02-251-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3649 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added tmp/sessions, tmp/cache, and tmp/sockets as default directories in the ↵David Heinemeier Hansson2006-02-251-1/+1
| | | | | | Rails skeleton [DHH] Changed the default session configuration to place sessions in tmp/sessions, if that directory is available, instead of /tmp (this essentially means a goodbye to 9/10 White Screen of Death errors and should have web hosting firms around the world cheering) [DHH] Added a default configuration of the FileStore for fragment caching if tmp/cache is available, which makes action/fragment caching ready to use out of the box with no additional configuration [DHH] Changed the default configuration for lighttpd to use tmp/sockets instead of log/ for the FastCGI sockets [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3645 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that script/generate model will now automatically create a migration ↵David Heinemeier Hansson2006-02-253-1/+30
| | | | | | file for the model created. This can be turned off by calling the generator with --skip-migration [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3644 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct the case of the CSS declarations. [Blair Zajac] Closes #3171Michael Koziarski2006-01-131-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3416 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix typo in mailer generator USAGE. Closes #3458.Marcel Molina2006-01-131-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3411 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add install.rb file to plugin generation which is loaded, if it exists, when ↵Marcel Molina2005-12-033-1/+5
| | | | | | you install a plugin. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Model generator: correct relative path to test_helper in unit test.Jeremy Kemper2005-11-221-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove superfluous check for pluralize_table_names (use table_name which ↵Sam Stephenson2005-11-221-1/+1
| | | | | | does this check when it's set). git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allows generator to specify migrations directory. References #2960.Jeremy Kemper2005-11-202-2/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3101 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introducing the session_migration generator. Creates an add_session_table ↵Jeremy Kemper2005-11-204-50/+43
| | | | | | migration. References #2958. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3098 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Scaffold-generated controller action gives paginate the plural_ rather than ↵Jeremy Kemper2005-11-051-1/+1
| | | | | | singular_name. Closes #2743. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2879 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added demonstration of fixture use to the test case generated by the model ↵David Heinemeier Hansson2005-11-022-7/+3
| | | | | | generator [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2846 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't dirty up the command delegates' base class with methods that belong in ↵Jeremy Kemper2005-10-291-5/+5
| | | | | | the migration generator class. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2799 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Migrations may be destroyed: script/destroy migration foo. Closes #2635.Jeremy Kemper2005-10-291-5/+52
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2798 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that plugins can carry generators and that generator stub files can be ↵David Heinemeier Hansson2005-10-284-2/+43
| | | | | | created along with new plugins using script/generate plugin <name> --with-generator [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2797 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Rakefile to plugin generator. Let test_plugins rake task look deeper ↵Jeremy Kemper2005-10-283-12/+40
| | | | | | into plugins' test dirs. Make plugin test cases flunk by default. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2790 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Plugin tests should include test/unitDavid Heinemeier Hansson2005-10-281-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2785 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added plugin generator to create a stub structure for a new plugin in ↵David Heinemeier Hansson2005-10-287-0/+51
| | | | | | vendor/plugins (see "script/generate plugin" for help) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2784 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use the old way of getting args to the scaffold generator and un-screwup the ↵Jeremy Kemper2005-10-281-5/+3
| | | | | | controller name assignment appropriately. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2783 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed scaffold generator when started with only 1 parameter (closes #2609) ↵David Heinemeier Hansson2005-10-281-1/+8
| | | | | | [self@mattmower.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2780 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Proper CSS color definition (closes #2334)David Heinemeier Hansson2005-10-261-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2751 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Scaffold generator pays attention to the controller name. Closes #2562.Jeremy Kemper2005-10-221-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2703 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Look here, braces: gimme some elbow room. #2418Jeremy Kemper2005-10-081-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2492 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make table_name and controller_name in generators honor ↵Marcel Molina2005-09-281-1/+1
| | | | | | AR::Base.pluralize_table_names. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2380 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make the migration generator only check files ending in *.rb when ↵Sam Stephenson2005-09-271-1/+1
| | | | | | calculating the next file name #2317 [Chad Fowler] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2362 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added prevention of duplicate migrations from the generator #2240 ↵David Heinemeier Hansson2005-09-241-0/+2
| | | | | | [fbeausoleil@ftml.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2320 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that generate scaffold claims all words are reserved #2200, #2211 ↵David Heinemeier Hansson2005-09-171-2/+3
| | | | | | [alancfrancis@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2253 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont encode the default subject for the test cases since they are within the ↵David Heinemeier Hansson2005-09-061-1/+1
| | | | | | ascii range git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2139 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the scaffold generator to fail right away if the database isn't ↵David Heinemeier Hansson2005-09-031-24/+24
| | | | | | accessible instead of in mid-air #1169 [Chad Fowler] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2111 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix documentation for mailer generatorDavid Heinemeier Hansson2005-09-021-3/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2097 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Replace render_partial with render :partial in scaffold generatorNicholas Seckar2005-08-172-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2030 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Show correct paths to generated templates for nexted controllers. Fixes #730Nicholas Seckar2005-07-143-9/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1828 5ecf4fe2-1ee6-0310-87b1-e25e094e27de