aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator
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-203-4/+9
| | | | 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-205-53/+88
| | | | | | migration. References #2958. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3098 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Windows: eliminate the socket option in database.yml. Closes #2924.Jeremy Kemper2005-11-181-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3082 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Eliminate nil from newly generated logfiles. References #2927.Jeremy Kemper2005-11-181-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Better svn status matching for generators. Closes #2814.Jeremy Kemper2005-11-101-1/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2972 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed all script/* to use /usr/bin/env ruby instead of hard-coded Ruby ↵David Heinemeier Hansson2005-11-091-4/+5
| | | | | | path. public/dispatcher.* still uses the hard-coded path for compatibility with web servers that dont have Ruby in path [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2959 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added an omnipresent RailsInfoController with a properties action that ↵Sam Stephenson2005-11-081-0/+1
| | | | | | delivers an HTML rendering of Rails::Info (but only when local_request? is true). Added a new default index.html which fetches this with Ajax. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2933 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Copy lighttpd.conf when it is first needed, instead of on app creationJamis Buck2005-11-071-1/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2921 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added default lighttpd config in config/lighttpd.conf and added a default ↵David Heinemeier Hansson2005-11-071-1/+1
| | | | | | runner for lighttpd in script/server (works like script/server, but using lighttpd and FastCGI). It will use lighttpd if available, otherwise WEBrick. You can force either or using 'script/server lighttpd' or 'script/server webrick' [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2912 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added script/about to display formatted Rails::Info outputSam Stephenson2005-11-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2883 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
* Change javascript_include_tag :defaults to not use script.aculo.us loader, ↵Thomas Fuchs2005-11-011-3/+0
| | | | | | which facilitates the use of plugins for future script.aculo.us and third party javascript extensions, and provide register_javascript_include_default for plugins to specify additional JavaScript files to load. Removed scriptaculous.js, slider.js and builder.js git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2835 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update script.aculo.us to V1.5_rc4Thomas Fuchs2005-10-291-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2802 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add default Mac + DarwinPorts MySQL socket locations to the app generator.Jeremy Kemper2005-10-291-5/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2800 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-285-2/+44
| | | | | | 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
* Removed app/apis as a default empty dir since its automatically created when ↵David Heinemeier Hansson2005-10-281-2/+0
| | | | | | using script/generate web_service [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2796 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added script/plugin to manage plugins (install, remove, list, etc) [Ryan ↵David Heinemeier Hansson2005-10-281-1/+1
| | | | | | Tomayko] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2793 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
* Added default lighttpd config in config/lighttpd.conf and added a default ↵David Heinemeier Hansson2005-10-281-3/+4
| | | | | | runner for lighttpd in script/lighttpd (works like script/server, but using lighttpd and FastCGI) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2786 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-288-1/+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
* Added app/services as a default dir in the Rails skeleton and to the load ↵David Heinemeier Hansson2005-10-281-0/+1
| | | | | | path. Use it to keep classes like MaintenanceService and PaymentGateway [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2782 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
* Clarify semantics of ActiveRecord::Base#respond_to? Closes #2560.Jeremy Kemper2005-10-221-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2705 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
* attempt to fix #2500Michael Koziarski2005-10-171-2/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* suppress mysql_config errorsJeremy Kemper2005-10-171-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* moved generators to lib/generatorsTobias Lütke2005-10-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2658 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove util.jsDavid Heinemeier Hansson2005-10-161-1/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Try to figure out which mysql socket to use. Default to ↵Jeremy Kemper2005-10-161-1/+6
| | | | | | /path/to/your/mysql.sock git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2645 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use expand_path for app_name so, e.g., rails . is supportedJeremy Kemper2005-10-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2644 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made the rails command use the application name for database names in the ↵Florian Weber2005-10-161-1/+1
| | | | | | tailored database.yml file. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2642 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed script/performanceDavid Heinemeier Hansson2005-10-151-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2605 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moving perform to performanceDavid Heinemeier Hansson2005-10-141-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2590 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3619@sedna: jeremy | 2005-10-14 14:41:24 -0700Jeremy Kemper2005-10-141-2/+3
| | | | | | | | | move scripts r3622@sedna: jeremy | 2005-10-14 14:54:48 -0700 remove script/perform and script/process in favor of script/perform/profile, etc. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2587 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update Prototype to V1.4.0_pre11, script.aculo.us to [2502] and fix the ↵Thomas Fuchs2005-10-091-4/+7
| | | | | | rails generator to include the new .js files [Thomas Fuchs] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2503 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Backing out of #2496. Comparing md5 checksums is in no way faster than doing ↵Marcel Molina2005-10-081-2/+1
| | | | | | a direct compare. Benchmarks help. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2497 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Compare md5 checksums of files rather than files themselves, as it's far ↵Marcel Molina2005-10-081-1/+2
| | | | | | faster for large files (like logs). git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2496 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Skip directories when checking for identical source and destination files.Marcel Molina2005-10-081-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2495 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Evaluate dynamic templates before checking if the new file is identical to ↵Marcel Molina2005-10-081-5/+13
| | | | | | the old one. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2494 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make the generator skip a file if it already exists and is identical to the ↵Marcel Molina2005-10-081-3/+10
| | | | | | new file. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2493 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