aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator
Commit message (Collapse)AuthorAgeFilesLines
...
* Space at the bottom feels betterDavid Heinemeier Hansson2008-03-291-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9131 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed outdated scaffold from templateDavid Heinemeier Hansson2008-03-291-3/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9130 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Switched to UTC-timebased version numbers for migrations and the schema. ↵David Heinemeier Hansson2008-03-281-12/+1
| | | | | | This will as good as eliminate the problem of multiple migrations getting the same version assigned in different branches. Also added rake db:migrate:up/down to apply individual migrations that may need to be run when you merge branches (closes #11458) [jbarnette] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9122 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Stop adding the antiquated test/mocks/* directories and only add them to the ↵David Heinemeier Hansson2008-03-271-2/+0
| | | | | | path if theyre still there for legacy reasons [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9102 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use the more modern error_messages from the form object rather than ↵David Heinemeier Hansson2008-03-222-6/+6
| | | | | | error_messages_for git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9077 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* 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
* Fixed that script/generate would not look for plugin generators in ↵David Heinemeier Hansson2008-03-132-6/+13
| | | | | | plugin_paths (closes #11000) [glv] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9017 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update URL in script/generate usage. Closes #11220 [neshmi]Pratik Naik2008-03-081-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8991 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move SecretKeyGenerator comments to the correct place for rdoc. Closes ↵Michael Koziarski2008-02-091-7/+6
| | | | | | #10940 [FooBarWidget] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8826 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Git support for script/generate. Closes #10690.Jeremy Kemper2008-02-022-3/+28
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8772 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
* Resurrect WordNet synonym lookups. Closes #10710.Jeremy Kemper2008-01-101-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8615 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
* Correct indentation in a couple spots. Closes #10671 [l.guidi, rick]Rick Olson2008-01-021-19/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8527 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
* Ruby 1.9 compat: use .to_a instead of .map which now returns an enumeratorJeremy Kemper2007-12-191-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8437 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-103-6/+6
| | | | | | [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-282-1/+165
| | | | | | 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
* Fix typo in generator usage blurb. Closes #10217 [Mike Naberezny]Jeremy Kemper2007-11-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8171 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Table names aren't nested: replace / with _ to match the likely table name.Jeremy Kemper2007-11-161-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8158 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
* Fixed incorrect migration number if script/generate executed outside of ↵David Heinemeier Hansson2007-10-181-1/+1
| | | | | | Rails root (closes #7080) [jeremymcanally] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7963 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Docfix (cloases #9832)David Heinemeier Hansson2007-10-181-7/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7961 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
* Added better documentation for generator overwrite options (closes #9842) ↵David Heinemeier Hansson2007-10-111-7/+17
| | | | | | [wincet] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7837 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
* Fixed spelling errors (closes #9706) [tarmo/rmm5t]David Heinemeier Hansson2007-09-282-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 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
* Doc fix (closes #9203) [lazyatom]David Heinemeier Hansson2007-09-221-3/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7551 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