aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator
Commit message (Collapse)AuthorAgeFilesLines
* Add custom mime type file for mongrel. config/mime.yml is added with ↵Rick Olson2006-11-191-0/+1
| | | | | | generated apps from the rails command. [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5571 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Scaffold resource should have both a layout and a stylesheet [DHH]David Heinemeier Hansson2006-11-196-1/+104
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5565 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* scaffold_resource generator uses _path named routes and head instead of ↵Jeremy Kemper2006-11-051-21/+18
| | | | | | render :nothing => true. Closes #6545. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5427 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Generator can show diff on file collision to help you decide whether to skip ↵Jeremy Kemper2006-11-021-18/+36
| | | | | | or overwrite. Closes #6364. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5397 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Generated directories are recursively svn added, like mkdir -p. Closes #6416.Jeremy Kemper2006-11-021-6/+20
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* resource and scaffold_resource generators add a restful route to ↵Jeremy Kemper2006-11-013-24/+34
| | | | | | config/routes.rb git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5379 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix scaffolding from using deprecated :post => true (closes #6499)David Heinemeier Hansson2006-10-261-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5366 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update scaffold to use new form_tag block functionality. Closes #6480 [BobSilva]Michael Koziarski2006-10-242-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5351 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Plugin generator: check for class collisions. Closes #4833.Jeremy Kemper2006-10-231-0/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5342 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* mailer unit test handles nested fixture pathsJeremy Kemper2006-10-202-6/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* reference view path in fixtureJeremy Kemper2006-10-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5328 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* .rhtml extension for view onlyJeremy Kemper2006-10-201-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5327 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Mailer generator: handle mailers in modules, set mime_version in unit test.Jeremy Kemper2006-10-205-11/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5326 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed migration creation to work with namespaced models, so script/generate ↵David Heinemeier Hansson2006-10-091-0/+1
| | | | | | model Gallery::Image will use create_table :gallery_images #6327 [BobSilva] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5261 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include field:type option for modelsDavid Heinemeier Hansson2006-10-092-1/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added script/generate resource which works just like scaffold_resource, but ↵David Heinemeier Hansson2006-10-0916-60/+246
| | | | | | creates empty placeholders instead of predefined [DHH] Added generated attribute options to script/generate model, like the one found in scaffold_resource and resource [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added proper USAGE to the scaffold_resource generator [DHH]David Heinemeier Hansson2006-10-081-4/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5235 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added proper USAGE to the scaffold_resource generator [DHH]David Heinemeier Hansson2006-10-081-5/+20
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5234 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* scaffold_resource naming, fixes #6276Jeremy Kemper2006-09-252-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5182 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Implemented ./script/generate scaffold_resource comment body:text ↵David Heinemeier Hansson2006-09-197-71/+120
| | | | | | created_at:datetime active:boolean price:decimal git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5147 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Work-in-progress scaffolder for resources [DHH/Rick Olson]David Heinemeier Hansson2006-09-1713-0/+343
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5132 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* session_migration generator adds an index on updated_at. Closes #6207.Jeremy Kemper2006-09-131-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5105 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Nested controller scaffolding also nests the generated layout.Jeremy Kemper2006-08-091-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* ./script/generate usage. Closes #5721.Jeremy Kemper2006-08-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4662 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* rails -d frontbase to create a new project with a frontbase database.yml. ↵Jeremy Kemper2006-07-081-6/+6
| | | | | | Closes #4945. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4587 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Really, this time. References #5612.Jeremy Kemper2006-07-051-7/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4560 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update scaffolding functional tests to use :id => people(:first) instead of ↵Jeremy Kemper2006-07-051-4/+4
| | | | | | :id => 1. Closes #5612. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4559 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* 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-283-8/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4502 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include rails -v / rails --version in app generator usage. Closes #5440.Jeremy Kemper2006-06-201-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4471 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
* The app generator detects the XAMPP package's MySQL socket location. Closes ↵Jeremy Kemper2006-05-121-1/+2
| | | | | | #3832. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4336 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The app generator sets a session key in application.rb so apps running on ↵Jeremy Kemper2006-05-071-2/+3
| | | | | | the same host may distinguish their cookies. Closes #2967. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4328 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Replace Ruby's deprecated append_features in favor of included. [Marcel ↵Marcel Molina2006-04-293-5/+3
| | | | | | Molina Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4310 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added script/process/inspector to do simple process status information on ↵David Heinemeier Hansson2006-04-281-1/+1
| | | | | | Rails dispatchers keeping pid files in tmp/pids [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4300 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added pid file usage to script/process/spawner and script/process/reaper ↵David Heinemeier Hansson2006-04-281-0/+1
| | | | | | along with a directive in default config/lighttpd.conf file to record the pid. They will all save their pid file in tmp/pids [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4294 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
* Fixed that the -r/--ruby path option of the rails command was not being ↵David Heinemeier Hansson2006-04-061-3/+4
| | | | | | respected (closes #4549) [ryan.raaum@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4177 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added -f/--freeze option to rails command for freezing the application to ↵David Heinemeier Hansson2006-04-011-2/+6
| | | | | | the Rails version it was generated with [DHH] Fixed rake rails:freeze:gems (closes #4518) [benji@silverinsanity.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4115 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Specify gem version in environment.rbDavid Heinemeier Hansson2006-04-011-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4111 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Teach Rails apps to only load gems of the same Rails version they were ↵Nicholas Seckar2006-04-011-1/+1
| | | | | | generated with. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4109 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't raise when the migration file is missing or it'll stop destroy model inScott Barron2006-03-261-1/+5
| | | | | | | | | the middle if there is no matching migration file. Closes #4426 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4057 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
* The Ruby path should be a string (closes #4361) [DHH]David Heinemeier Hansson2006-03-251-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4033 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