aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator/generators/components
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Added a USAGE document to the migration generatorDavid Heinemeier Hansson2005-07-061-0/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1722 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that model generator would make fixtures plural, even if ↵David Heinemeier Hansson2005-07-021-1/+1
| | | | | | ActiveRecord::Base.pluralize_table_names was false #1185 [Marcel Molina] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1612 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for upload progress indicators in Apache and lighttpd 1.4.x ↵David Heinemeier Hansson2005-06-281-0/+21
| | | | | | (won't work in WEBrick or lighttpd 1.3.x) #1475 [Sean Treadway] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1552 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed ActionMailer generated tests to work properly after quoted refactoring ↵David Heinemeier Hansson2005-06-251-1/+3
| | | | | | #1481 [patrick@lenz.sh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1506 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added a migration generatorDavid Heinemeier Hansson2005-06-222-0/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1477 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that mailer generator generated fixtures/plural while units expected ↵David Heinemeier Hansson2005-06-211-2/+2
| | | | | | fixtures/singular #1457 [Scott Barron] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1461 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r2495@sedna: jeremy | 2005-05-27 22:07:18 -0700Jeremy Kemper2005-06-121-20/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Branch to have scaffold use new render methods r2496@sedna: jeremy | 2005-05-28 10:50:51 -0700 axe unused process_request method r2497@sedna: jeremy | 2005-05-28 10:51:58 -0700 sanity assertions in process method check that @controller, @request, @response are set r2498@sedna: jeremy | 2005-05-28 10:53:42 -0700 clean up escaping. use instance_variable_get instead of instance_eval. put id in form action instead of hidden input (like the generated scaffolding) r2499@sedna: jeremy | 2005-05-28 10:54:46 -0700 clean up interpolation, remove tabs from stylesheet r2500@sedna: jeremy | 2005-05-28 10:56:40 -0700 modernize dynamic scaffolding. use params[:id] instead of @params[id]. use consolidated render method instead of render_action, render_file, etc. use builtin inflections rather than module methods. r2501@sedna: jeremy | 2005-05-28 11:00:26 -0700 modernize generated scaffolding. use new-style assertions; use params[:id] instead of @params[id]; use consolidated render method instead of render_* r2542@sedna: jeremy | 2005-06-12 02:24:06 -0700 use :id => model instead of :id => model.id. clean up the form helper method. use flash[:notice] instead of flash['notice']. r2543@sedna: jeremy | 2005-06-12 02:33:22 -0700 whitespace r2544@sedna: jeremy | 2005-06-12 02:56:57 -0700 update changelogs r2545@sedna: jeremy | 2005-06-12 03:26:23 -0700 test dynamic form help when @post is not a new record r2546@sedna: jeremy | 2005-06-12 03:44:14 -0700 touch up TestCase#process sanity assertions git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1404 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* CSS needs "red" not #redDavid Heinemeier Hansson2005-06-061-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1388 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed scaffolding to use the latest styleDavid Heinemeier Hansson2005-06-025-19/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1380 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed docs for scaffolding generator #1303 [thijs@vandervossen.net]David Heinemeier Hansson2005-05-191-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added pagination for scaffolding (10 items per page) #964 [mortonda@dgrmm.net]David Heinemeier Hansson2005-04-022-1/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1067 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* _at is better for Time.now than _onDavid Heinemeier Hansson2005-03-231-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@988 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont repeat error messages in scaffoldsDavid Heinemeier Hansson2005-03-213-9/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@962 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved the generated scaffold code a lot to take advantage of recent Rails ↵David Heinemeier Hansson2005-03-201-0/+1
| | | | | | developments #882 [Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@952 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved the generated scaffold code a lot to take advantage of recent Rails ↵David Heinemeier Hansson2005-03-2010-65/+73
| | | | | | developments #882 [Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@951 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that scaffold generator new template should use local variable instead ↵David Heinemeier Hansson2005-03-061-1/+1
| | | | | | of instance variable #778 [Dan Peterson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@859 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added web_service generator (run ./script/generate web_service for help) ↵David Heinemeier Hansson2005-03-065-0/+89
| | | | | | #776 [Leon Bredt] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@851 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix the error message on generate mailerDavid Heinemeier Hansson2005-02-221-1/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@745 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made Action Mailer templates use UTF-8 as defaultDavid Heinemeier Hansson2005-02-221-1/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@739 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed functional test path problems #662David Heinemeier Hansson2005-02-182-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@663 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Check class path for conflicts on generation #640 [bitsweat]David Heinemeier Hansson2005-02-174-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@655 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Forget to addd thisDavid Heinemeier Hansson2005-02-151-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@634 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed generated functional test for nested controllers has wrong paths #635David Heinemeier Hansson2005-02-154-9/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@631 5ecf4fe2-1ee6-0310-87b1-e25e094e27de