Commit Graph

193 Commits

Author SHA1 Message Date
Santiago Pastorino
7cb49f551c layout 'application' is not anymore on application_controller
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-10 20:52:55 +02:00
Jeff Kreeftmeijer
d93b45e8d3 Rails::Generators::GeneratedAttribute: tests, cleanups and a bugfix [#4631 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-10 20:04:49 +02:00
José Valim
9d33c2ab6f Fix generator test broken when rails new was added. 2010-06-08 16:05:19 +02:00
José Valim
44cb6dce62 Still copy application configuration to generator even if they are required earlier. Also tidy up the guide a little bit. 2010-06-03 23:32:12 +10:00
José Valim
2740943634 Remove the laziness from the middleware stack. 2010-06-03 23:32:10 +10:00
wycats
ed34652d1a Removing Metal from Rails 3.
If you have existing Metals, you have a few options:
* if your metal behaves like a middleware, add it to the
  middleware stack via config.middleware.use. You can use
  methods on the middleware stack to control exactly where
  it should go
* if it behaves like a Rack endpoint, you can link to it
  in the router. This will result in more optimal routing
  time, and allows you to remove code in your endpoint
  that matches specific URLs in favor of the more powerful
  handling in the router itself.

For the future, you can use ActionController::Metal to get
a very fast controller with the ability to opt-in to specific
controller features without paying the penalty of the full
controller stack.

Since Rails 3 is closer to Rack, the Metal abstraction is
no longer needed.
2010-06-03 23:32:10 +10:00
Simon Jefford
7be58b6163 Tests for new reserved words [#4602 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-16 19:15:24 +02:00
José Valim
1a2d556de7 Rename assert_attribute_type to asser_field_type. 2010-05-16 12:07:44 +02:00
Jeff Kreeftmeijer
5ff6de0982 Added assert_attribute_type to clean up GeneratedAttributeTest [#2377 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-16 12:07:22 +02:00
Adrian Sanchez
bcf5fea5e5 Bundler deprecated options in Gemfile with application template using method "gem" [#4534 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-15 09:43:20 +02:00
Carl Lerche
6d7f2790cd Expand paths to app builders relative to the working directory 2010-05-06 12:02:54 +03:00
Carlhuda
785493ffed Provide a mechanism for overriding the entire generator via a class that handles the individual elements of generating a new Rails application 2010-04-30 13:48:06 -07:00
Carlhuda
0761d1b0f7 Set up app generator class to make it easier to for alt-stacks to override targeted areas 2010-04-30 13:48:06 -07:00
José Valim
cde168edbb Update generators to use thor 0.13.6 with simpler source_root handling. 2010-04-30 12:42:12 +02:00
José Valim
7b98d2aa59 Reorganize the mailer generator a bit. 2010-04-30 12:11:38 +02:00
Carlhuda
c54c84b7b4 Move ActionMailer generator to AM 2010-04-29 16:45:57 -07:00
José Valim
b0a53c86ef Update thor dependency to 0.13.5 2010-04-29 23:25:40 +02:00
Ravinder Singh
e9a9ef094e warn user if options are given before application name [#3435 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-29 13:00:17 +02:00
Phil Smith
64373937a3 Make the migration generator handle pre-existing migrations with the same timestamp.
In the event a migration already exists with that number, the new migration's timestamp will be incremented by 1.

[#4412 state:resolved]

Signed-off-by: Michael Koziarski <michael@koziarski.com>
2010-04-19 14:48:31 +12:00
Andrew White
788d923893 Generate module file for namespaced models [#4230 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-12 10:57:27 +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
Jeremy Kemper
c44cacb070 Include app name in layout title 2010-04-09 09:49:46 -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
e8a80cdded Controller generators should use routes shortcut. 2010-03-22 21:07:37 +01:00
José Valim
fb89aba8b4 Killing fixtures in mailer before they kill me (they usually lead to very brittle tests). 2010-03-22 21:07:37 +01:00
Jeremy Kemper
4884f28c80 Also revert mailer generator test changes in 8b50f89 2010-03-21 16:18:32 -07:00
Jeremy Kemper
49416550fe Fix regression introduced in 8b50f89. Generated views mentioned the wrong path. 2010-03-21 16:07:21 -07:00
José Valim
8b50f89ba7 Make ERB generators more flexible and customizable. 2010-03-21 19:30:42 +01:00
José Valim
562154fcbc Controller generator now creates routes as well [#4233 state:resolved] 2010-03-19 18:12:54 +01:00
Sebastian Martinez
b395c81e3c removed useless require line
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-19 11:08:06 +01:00
José Valim
7a5da21481 Use human_name in scaffold. 2010-03-17 00:09:43 +01:00
Caio Chassot
94a60a5600 In app_generator, fix hardcoded bundle call to derive the bundle executable name from Thor::Util.ruby_command.
This ensures that eg. when `rails` is called from `ruby1.9`, `bundle1.9` is called.

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-12 21:33:39 +01:00
Kieran Pilkington
9268b598bb Add a check to ensure that the application name does not already exist, i.e. String or Module are part of ruby [#3872 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-12 21:33:39 +01:00
Ramon Soares
79c47abe6c the folder public/javascripts should be created by default [#4027 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-26 10:54:44 +01:00
José Valim
d0454e5766 Add readme as method in Rails::Generators::Actions (as we had in 2.3) 2010-02-17 18:43:40 +01:00
Kyle Maxwell
d4e008fd0f Invalid namespace on app generation raises an error
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-17 00:38:30 +01:00
José Valim
97650bf54a Fix a couple failing tests. 2010-02-10 08:33:41 +01:00
Michael Bleigh
9c654744fb Fixes unescaped version passthrough of generator 'gem' command. [#3901 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-10 08:28:03 +01:00
Mikel Lindsaar
7d76474e5d Debrittlize tests somewhat - fix for CI build
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-10 07:26:01 +01:00
RomD
f44a0b1d52 fix usage examples and more to use new invocations
Signed-off-by: Carl Lerche <carllerche@mac.com>
2010-02-06 09:51:53 -08:00
José Valim
6958eac1a0 Add config.generators.templates to provide alternative paths for template lookup. 2010-02-06 17:32:06 +01:00
Yehuda Katz
b392c81869 Fixes test fail 2010-02-05 21:30:26 -08:00
Jeremy Kemper
5c07c33ab4 Move framework requires and Bundler.require from boot.rb to app.rb. Cut down the list of railtie choices to those that make sense. 2010-02-04 10:08:06 -08:00
José Valim
79376e3c9d Update Gemfile to use latest bundler config. 2010-02-04 13:53:37 +01:00
Mikel Lindsaar
80e49354f1 Updating index.html to remove script/generate and making railties tests pass again 2010-02-02 21:13:01 -08:00
Mikel Lindsaar
485f12fe4c Fixed --dev flag for new bundler 2010-02-02 11:24:19 +11:00
Joshua Peek
e0d4e5f345 Revert "Drop JS scripts from core"
This reverts commit a06c47a52b90a5d812e64309488ad5926dc583ca.
2010-01-30 14:39:59 -06:00
Joshua Peek
a06c47a52b Drop JS scripts from core 2010-01-29 20:27:23 -06:00
José Valim
17ea8d8d4d Automatically configure generators if application is defined. 2010-01-29 17:51:06 +01:00