aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator
Commit message (Collapse)AuthorAgeFilesLines
* Default to plural table name in Rails Generator if ActiveRecord is not ↵Rick Olson2007-07-121-1/+1
| | | | | | present. Closes #8963 [evan] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7183 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Generators: look for generators in all gems, not just those suffixed with ↵Jeremy Kemper2007-06-273-9/+43
| | | | | | _generator, in the gem's generators or rails_generators directory. Allow use of the rails_generators directory instead of the standard generators directory in plugins also. Closes #8730. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7139 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added db:version to get the current schema number [via Tim Bray]David Heinemeier Hansson2007-06-251-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7110 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added --skip-migration option to scaffold and resource generators (closes ↵David Heinemeier Hansson2007-06-232-3/+21
| | | | | | #8656) [Michael Glaesemann] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7108 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Scaffolded validation errors set the appropriate HTTP status for XML ↵Jeremy Kemper2007-06-101-2/+2
| | | | | | responses. Closes #8622. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6990 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix indentation in model generator migration template. Closes #8577 [Josh Peek]Jeremy Kemper2007-06-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6939 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Sexy migrations for the session_migration generator. Closes #8561.Jeremy Kemper2007-06-051-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6938 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Wordsmith generator USAGEs.Jeremy Kemper2007-05-2911-163/+104
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6884 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Generated migrations include timestamps by default. Closes #8501.Jeremy Kemper2007-05-295-21/+33
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6883 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove unused resource generator templates obviated by [6841]. Closes #8487 ↵Jeremy Kemper2007-05-273-0/+0
| | | | | | [shane] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6870 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Normalize whitespace. Closes #8385 [Time Pope]Jeremy Kemper2007-05-2714-19/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6869 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Also remove the duplicated unit test template. References #7222.Jeremy Kemper2007-05-251-10/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6841 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Scaffold generator depends on model generator instead of duplicating it. ↵Jeremy Kemper2007-05-254-40/+1
| | | | | | Closes #7222. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6840 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Scaffold generator tests. Closes #8443.Jeremy Kemper2007-05-231-3/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6824 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Generated scaffold functional tests use assert_difference. Closes #8421.Jeremy Kemper2007-05-221-6/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6808 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix USAGE typo in resource generator. Closes #8406.Jeremy Kemper2007-05-201-13/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6795 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* We changed name to scaffoldDavid Heinemeier Hansson2007-05-183-5/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6768 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* We dont use semicolon any moreDavid Heinemeier Hansson2007-05-181-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6767 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* A few more fixesDavid Heinemeier Hansson2007-05-171-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated with the latest tricksDavid Heinemeier Hansson2007-05-164-9/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6747 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Scaffold resource is now scaffoldDavid Heinemeier Hansson2007-05-1615-7/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6746 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make way for the new and improved scaffoldDavid Heinemeier Hansson2007-05-1613-534/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6745 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Generators use *.html.erb view template naming. Closes #8278.Jeremy Kemper2007-05-0626-19/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6690 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added short-hand declaration style to migrations (inspiration from Sexy ↵David Heinemeier Hansson2007-05-062-2/+2
| | | | | | Migrations, http://errtheblog.com/post/2381) [DHH] Updated resource_scaffold and model generators to use short-hand style migrations [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6667 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* You're dead! We killed you!David Heinemeier Hansson2007-04-295-0/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6632 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed breakpointer and Binding.of_caller in favor of relying on ruby-debug ↵David Heinemeier Hansson2007-04-281-1/+1
| | | | | | by Kent Sibilev since the breakpointer has been broken since Ruby 1.8.4 and will not be coming back [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6611 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Resource scaffolding returns the created entity.to_xml.Jeremy Kemper2007-04-251-6/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6580 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Resource scaffolding responds to new.xml. Closes #8185.Jeremy Kemper2007-04-251-0/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6579 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* documentation project patches, closes #7342, #7319, #7316, #7190 ↵Rick Olson2007-03-271-1/+1
| | | | | | [jeremymcanally] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6470 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add environment variable RAILS_DEFAULT_DATABASE, which allows the builtin ↵Nicholas Seckar2007-03-141-1/+2
| | | | | | default of 'mysql' to be overridden. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6429 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Windows: include MinGW in RUBY_PLATFORM check. Closes #2982.Jeremy Kemper2007-03-061-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6344 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added assumption that all plugin creators desire to be sharing individuals ↵David Heinemeier Hansson2007-02-273-1/+31
| | | | | | and release their work under the MIT license [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6244 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix app generatorRick Olson2007-02-241-2/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include two default initializers as examplesDavid Heinemeier Hansson2007-02-231-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added config/initializers where all ruby files within it are automatically ↵David Heinemeier Hansson2007-02-231-0/+1
| | | | | | loaded after the Rails configuration is done, so you don't have to litter the environment.rb file with a ton of mixed stuff [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6212 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Missed commit for [6184]. Generate a random secret for new app's cookie ↵Jeremy Kemper2007-02-211-1/+1
| | | | | | session store. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Apply the rest of Chads patchDavid Heinemeier Hansson2007-02-2138-192/+192
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Plugins may be symlinked in vendor/plugins. Closes #4245.Jeremy Kemper2007-02-011-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6101 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Resource generator depends on the model generator rather than duplicating ↵Jeremy Kemper2007-01-285-50/+1
| | | | | | it. Closes #7269. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6069 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add/Update usage documentation for script/destroy, resource generator and ↵Rick Olson2007-01-233-5/+58
| | | | | | scaffold_resource generator. Closes #7092, #7271, #7267. [bscofield] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6016 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Generator: use destination path for diff tempfiles. Closes #7015.Jeremy Kemper2007-01-131-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5914 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix scaffold_resource generator so it respects the --pretend argument when ↵Rick Olson2006-12-261-2/+4
| | | | | | creating the routes file. Closes #6852 [fearoffish] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5790 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rewrap scaffold_resource USAGE so it displays nicely on most terminals. ↵Jeremy Kemper2006-12-081-20/+28
| | | | | | Closes #6801 [Paul Smith] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5707 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Missed commit from [5686].Jeremy Kemper2006-12-062-1/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5691 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Documentation for generators (closes #6671) [topfunky]David Heinemeier Hansson2006-12-031-24/+73
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* redirect_to is the one place where _url should be used, not _path [DHH]David Heinemeier Hansson2006-11-261-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5633 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont include the mime.yml anyway, Mongrel will just ship with more defaults ↵David Heinemeier Hansson2006-11-231-1/+0
| | | | | | instead git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5612 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* 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