aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator/generators
Commit message (Collapse)AuthorAgeFilesLines
...
* Removed dead styles (closes #11353) [boone]David Heinemeier Hansson2008-03-151-20/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9028 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update scaffold to use labels instead of bold tags. Closes #10757 ↵Rick Olson2008-01-122-4/+2
| | | | | | [zach-inglis-lt3] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8629 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move model dependency to the end of the scaffold generator manifest. Closes ↵Jeremy Kemper2008-01-051-2/+2
| | | | | | #10696 [drnic] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8558 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* App generate says sqlite3 is the default and mentions frontbase. Closes ↵Jeremy Kemper2007-12-211-3/+4
| | | | | | #10550 [Cheah Chu Yeow, Will Cannings] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8457 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed the default database from mysql to sqlite3, so now running "rails ↵David Heinemeier Hansson2007-12-161-1/+1
| | | | | | myapp" will have a config/database.yml thats setup for SQLite3 (which in OS X Leopard is installed by default, so is the gem, so everything Just Works with no database configuration at all). To get a Rails application preconfigured for MySQL, just run "rails -d mysql myapp" [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8417 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that functional tests generated for scaffolds should use fixture calls ↵David Heinemeier Hansson2007-12-141-4/+4
| | | | | | instead of hard-coded IDs (closes #10435) [boone] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8386 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: File.exists\? -> File.exist\? en masse. References #1689 ↵Jeremy Kemper2007-12-101-1/+1
| | | | | | [Pratik Naik] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8365 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Generated fixtures should not specify ids since theyre expected to be foxy ↵David Heinemeier Hansson2007-12-011-9/+9
| | | | | | fixtures (closes #10330) [jbarnette] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8247 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* You dont need to explicitly declare which controller youre testing when you ↵David Heinemeier Hansson2007-11-303-6/+0
| | | | | | follow the naming convention git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8244 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce SecretKeyGenerator for more secure session secrets than ↵Jeremy Kemper2007-11-281-1/+5
| | | | | | CGI::Session's pseudo-random id generator. Consider extracting to Active Support later. Closes #10286. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8229 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* No trailing whitespace in migration generation (closes #10235)David Heinemeier Hansson2007-11-251-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8204 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Resource and scaffold generators pass on the full name to the dependent ↵Jeremy Kemper2007-11-162-2/+2
| | | | | | model, so nested resources give a corresponding nested model. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use the new TestCase subclasses in the scaffold and resource generators ↵Jeremy Kemper2007-11-162-22/+6
| | | | | | also. Closes #10174 [bscofield] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8154 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove stale warning from application generator usage message. Closes #10165 ↵Jeremy Kemper2007-11-141-7/+0
| | | | | | [bronson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8143 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove unneeded file that was missed by [8098]Michael Koziarski2007-11-061-0/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8105 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make work with --skip-timestampsDavid Heinemeier Hansson2007-11-061-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8098 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added --skip-timestamps to generators that produce models (closes #10036) ↵David Heinemeier Hansson2007-11-044-4/+12
| | | | | | [tpope] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8070 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Excise generated whitespace. Closes #10017 [Tim Pope]Jeremy Kemper2007-10-292-19/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8055 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce TestCase subclasses for testing rails applications allowing tests ↵Michael Koziarski2007-10-263-35/+11
| | | | | | to be DRY'd up a bit and to provide a path toward tidying up our monkeypatching of test/unit. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8022 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Request profilerJeremy Kemper2007-10-251-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8016 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Generated fixtures use the actual primary key instead of id. Closes #4343.Jeremy Kemper2007-10-151-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7899 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Create layout dir it's nested. References #9272 [alancfrancis]Jeremy Kemper2007-10-081-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7784 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed calls to fixtures in generated tests as fixtures :all is now present ↵David Heinemeier Hansson2007-10-014-8/+0
| | | | | | by default in test_helper.rb [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7705 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Better error messages if you leave out the :secret option for request ↵Rick Olson2007-09-281-1/+1
| | | | | | forgery protection. Closes #9670 [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7671 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix test (closes #9120) [hasmanyjosh]David Heinemeier Hansson2007-09-251-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7638 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use the correct generator name in the docs (closes #9111) [ceefour]David Heinemeier Hansson2007-09-251-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7637 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include the new 422 in the app generationDavid Heinemeier Hansson2007-09-241-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added --skip-fixture option to script/generate model (closes #6862) [sandofsky]David Heinemeier Hansson2007-09-231-2/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7601 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix CSS error in scaffold (closes #7450) [kampers]David Heinemeier Hansson2007-09-221-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7575 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the placement of fixture files for nested models when generating ↵David Heinemeier Hansson2007-09-221-1/+1
| | | | | | through script/generate model (closes #7547) [jkit] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7573 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Plugin license and README should use a dynamic year (closes #9329) [bscofield]David Heinemeier Hansson2007-09-222-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove the AWS web_service generatorMichael Koziarski2007-09-225-85/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7543 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated some docs to reference the latest and greatest and played style nazi ↵David Heinemeier Hansson2007-09-201-10/+10
| | | | | | a little git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7517 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use attribute pairs instead of the migration name to create add and remove ↵Michael Koziarski2007-09-093-20/+29
| | | | | | column migrations. Closes #9166 [lifofifo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7422 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Automatically generate add/remove column commands in specially named ↵Rick Olson2007-07-243-2/+29
| | | | | | migrations like AddLocationToEvent. Closes #9006 [zenspider] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7216 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-182-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6768 5ecf4fe2-1ee6-0310-87b1-e25e094e27de