Commit Graph

18 Commits

Author SHA1 Message Date
Prem Sichanugrist 63cd92f9f3 Rails will now generate Ruby 1.9 style hash when running scaffold_controller generator on Ruby 1.9.x
The new hash syntax of Ruby 1.9 looks more superior, so we decide to switch to it in the places that appropriate.

This patch has been requested by DHH.
2011-04-10 16:47:50 +08:00
Xavier Noria f41dd99be7 revises links to the API websites of individual components (no longer maintained), and rewrites the section about after and around filters in the controller guide 2011-03-09 07:43:18 +01:00
Piotr Sarnacki d0d30e767d Fix scaffold generator to be aware of namespace in isolated engine 2010-11-03 20:48:40 +01:00
Piotr Sarnacki 51c7660e08 Add namespacing to mailer generator
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-25 17:28:10 +02:00
Piotr Sarnacki 7acf64a81b Add namespacing for observer generator
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-25 17:28:10 +02:00
Piotr Sarnacki 49c3ad7f77 Add namespace for test_unit generators
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-25 17:28:10 +02:00
Prem Sichanugrist 67ee6c38b9 Remove the --singeleton option from scaffold generator.
It turned out to be that scaffold for singeleton resource will always depend on another model, and it's not possible at the moment to make the application tests pass after generate the singeleton scafold. So, it would be better to remove it for now and probably provide another generator, such as singeleton_scaffold, in which also require the depended model name.

[#4863 state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-24 20:17:59 +02:00
Mohammed Siddick.E 7008911222 Patch for Namespace problem in Scaffold. [#4763 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-23 09:30:55 +02:00
Andrew White ed3f042e99 Make polymorphic_url and scaffolding work with uncountable resources [#3930 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-20 00:15:41 +02:00
Gonçalo Silva d21aa6de4f performance and integration tests inherit from AD, not AC
Signed-off-by: wycats <wycats@gmail.com>
2010-05-28 23:53:03 +02:00
José Valim b3a0aed028 Just assert for 'Hi' in generated mailer tests. 2010-03-26 20:25:54 +01:00
José Valim b61f6f5980 Load generators from both lib/rails/generators and lib/generators. Using the former since it's less obstrusive. 2010-03-23 13:40:41 +01:00
José Valim 9fffdc5cdb Generators load path now will be Ruby load path. If you want to use rspec:install generator, you need generators/rspec/install_generator in your load path. 2010-01-18 16:21:11 +01:00
Joshua Peek 2601a16ede Autoload AS test case 2010-01-04 16:22:46 -06:00
David Heinemeier Hansson 5e94d3e3ea Merge 2010-01-03 22:27:28 -08:00
David Heinemeier Hansson 44fb54fecd Models with no attributes should just have empty hash fixtures [Sam] (Closes #3563) 2009-12-17 17:53:16 -08:00
Jeremy Kemper 7ad6e9bc78 Fix generated performance test helper requires 2009-11-10 01:52:40 -08:00
Yehuda Katz + Carl Lerche f0dd77c6be Move railties/lib/* into railties/lib/* 2009-09-24 16:11:41 -07:00