Commit Graph

33 Commits

Author SHA1 Message Date
Arun Agrawal
ba3e27532b fix scaffold_generator_test.rb and model_generator_test.rb
Broken after this 6a054b0038bac288a1f6e45feb5470f4ee492081
2012-04-16 12:10:39 +05:30
Rafael Mendonça França
7c00cde79f Refactor the test_unit scaffold generator to use the key_value method 2012-03-13 14:19:03 -03:00
Rafael Mendonça França
08db3d5af3 Use the attributes hash explicitly 2012-03-13 11:21:29 -03:00
Rafael Mendonça França
7ad4c7c881 Do not use the attributes hash in the scaffold functional tests 2012-03-12 19:45:01 -03:00
José Valim
0a4035b12a Revert the serializers API as other alternatives are now also under discussion 2011-11-25 19:29:39 +00:00
José Valim
6d9f9b3b05 Add a hook for serializers in the scaffold generator (off for now). 2011-11-25 09:17:32 +00:00
Santiago Pastorino
539752a54c Move Coffee generators and templates to Coffee Railtie and create javascript_engine ("js") for apps that remove Coffee gem 2011-06-29 21:16:09 -03:00
José Valim
08983fefd5 Attributes on scaffold and model generators default to string.
This allows the following: "rails g scaffold Post title body:text author"
2011-06-17 15:10:53 -03:00
tomhuda
74ade51eee Move SCSS generators and default templates from Rails to the Sass Railtie (d435726312601edb3ba6f97b34f562221f72c1f8).
* Sass gem registers a compressor
* Sass gem registers generators for assets and scaffold
* Create a default stylesheet_engine ("css") for apps that remove the Sass gem
2011-05-24 16:04:28 -07:00
José Valim
3a68aec1a1 Make generators more modular, add hooks and improve test suite. 2011-04-17 11:44:52 +02:00
Santiago Pastorino
3b9120fa52 Generate add_index by default when giving type belongs_to or references 2010-12-16 20:58:58 -02:00
Jeff Kreeftmeijer
d82d98dcd5 got rid of the "ambiguous first argument; put parentheses or even spaces" warnings in the scaffold_generator tests [#4872 state:resolved]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-09-24 16:17:39 -03:00
rohit
13d2a08164 Add two integration tests for GeneratedAttribute missing type error. [#5461 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-02 12:59:21 +02:00
rohit
c544fcc8eb Failing test to check for route file corruption if legacy map parameter is used. [#5263 state:open] 2010-08-02 10:55:05 -03: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
Jeremy Kemper
ec8e747960 Partially revert "A new application now comes with a layout and a stylesheet."
This reverts commit ea2c5fa8046e2f953b366adc94f0610ccfea0828.

Conflicts:

	railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb
	railties/test/generators/app_generator_test.rb
2010-04-09 10:04:20 -07:00
José Valim
ea2c5fa804 A new application now comes with a layout and a stylesheet. 2010-04-06 00:18:35 +02: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
562154fcbc Controller generator now creates routes as well [#4233 state:resolved] 2010-03-19 18:12:54 +01:00
José Valim
a18dd52d58 Get generators tests running on Ruby 1.9.1 2010-01-19 01:36:06 +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
José Valim
271e7c803f Move all generators tests to use new test case syntax. 2010-01-03 17:14:50 +01:00
José Valim
441227a10f Create Rails::Generators::TestCase. 2010-01-03 17:14:49 +01:00
Joshua Peek
0fec53f243 Scaffolding generates new routing dsl examples 2009-12-09 18:57:16 -06:00
Yehuda Katz
14370e1aab CI breakage
This reverts commit a288b74f1c75c6f100de7611a5093a421f1ad6d1.
2009-11-02 17:12:01 -08:00
José Valim
a288b74f1c Generators should use Rails.root instead of Dir.pwd [#3408 status:resolved]
Signed-off-by: Yehuda Katz <wycats@gmail.com>
2009-10-28 16:54:38 -04:00
Yehuda Katz + Carl Lerche
f0dd77c6be Move railties/lib/* into railties/lib/* 2009-09-24 16:11:41 -07:00
José Valim
d8d83e7821 Change div.attribute to div.field and add some _form to tests. 2009-08-30 18:49:54 +02:00
José Valim
b4ef958de6 Change false to :verbose => false as in new Thor version. 2009-07-15 20:16:37 +02:00
José Valim
a06c825b46 Updated vendored Thor to 0.11.1 and update Rails::Generators. 2009-07-14 22:20:43 +02:00
José Valim
d1c404ee90 Added lookup to generators. 2009-07-03 14:57:46 +02:00
José Valim
528d555e37 Make invoke output white and use padding. 2009-07-02 15:55:21 +02:00
José Valim
c972b25df5 Tests for scaffold generator. 2009-07-02 10:27:40 +02:00