aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator/generators
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* 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-0914-60/+196
| | | | | | 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
* 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-282-4/+4
| | | | 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
* 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
* 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
* 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
* 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
* Added public/javascripts/application.js as a sample since it'll ↵David Heinemeier Hansson2006-03-041-15/+6
| | | | | | automatically be included in javascript_include_tag :defaults [DHH] (backed out of -a/--with-assets, not worth it) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3770 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added -a/--with-assets option to rails generator that will include default ↵David Heinemeier Hansson2006-03-041-3/+13
| | | | | | assets for application layout, javascript, and stylesheet [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3764 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
* Renamed the "oci" adapter to "oracle", but kept the old name as an alias ↵David Heinemeier Hansson2006-03-011-2/+2
| | | | | | (closes #4017) [schoenm@earthlink.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3718 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Guard against app generation if the database specified isnt supported for ↵David Heinemeier Hansson2006-02-281-0/+3
| | | | | | preconfiguration [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3711 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
* Add integration test support to app generation and testingJamis Buck2006-02-281-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3702 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added -r/--repeat option to script/process/spawner that offers the same loop ↵David Heinemeier Hansson2006-02-261-1/+1
| | | | | | protection as the spinner did. This deprecates the script/process/spinner, so it's no longer included in the default Rails skeleton, but still available for backwards compatibility (closes #3461) [ror@andreas-s.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3672 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-252-1/+4
| | | | | | 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
* Prepare order for uncommenting, use consistent opt options [DHH]David Heinemeier Hansson2006-02-251-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de