Commit Graph

770 Commits

Author SHA1 Message Date
José Valim c690b7124d [IMPORTANT] Make "sprockets/railtie" require explicit.
This makes "sprockets/railtie" explicit. This means that sprockets will
be loaded when you require "rails/all". If you are not using requiring
"rails/all", you need to manually load it with all other framework
railties.

In order to be complete, this commit also adds --skip-sprockets to
the rails generator.
2011-06-29 09:41:16 -03:00
José Valim 16894982e3 Update CHANGELOG. 2011-06-22 12:52:46 -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
Xavier Noria c00da252b8 mention assets:clean in railties CHANGELOG 2011-06-07 22:03:15 +02:00
Guillermo Iguaran 433390de2d Updating Railties changelog 2011-05-25 18:49:17 -05:00
Xavier Noria 26cfd1f283 application and plugin generation run bundle install unless --skip-gemfile or --skip-bundle 2011-05-14 02:37:41 +02:00
Prem Sichanugrist f2769ebd7e Update Mailer generator to use 1.9 styled hash when run on Ruby 1.9
As always, you can run `--old-style-hash` to override that.
2011-05-13 18:25:32 -04:00
Xavier Noria c88dddbe4d application and plugin generation run bundle check unless --skip-gemfile
The purpose of this feature is that the user knows whether
dependencies are satisfied. In particular, if they are not
he will be warned upfront, rather than finding out himself
in an abrupt way by trying to run something.
2011-05-13 01:06:27 +02:00
Guillermo Iguaran 259c749de1 Merging 3.0.x CHANGELOGs 2011-05-10 11:51:35 -05:00
Arun Agrawal 4addc99d19 Updated change log for jdbc* adapters template. 2011-05-07 21:24:21 +05:30
Xavier Noria 897318f4ee fixes typo in railties/CHANGELOG (spotted by Vijay Dev) 2011-05-04 12:10:38 +02:00
Xavier Noria d9c39c3ae9 restores the -j option, but now it accepts the name of any library
If passed "foo", a gem "foo-rails" is added to the Gemfile
and "foo" and "foo_ujs" are required in the application
JavaScript manifest.
2011-05-04 10:33:53 +02:00
Xavier Noria 33567d1d7b jQuery is no longer vendored 2011-05-04 10:33:53 +02:00
Xavier Noria b2aacc346c Prototype and Scriptaculous are no longer vendored, but provided by prototype-rails from now on, also the -j option of the application generator is removed 2011-04-30 03:53:24 +02:00
Prem Sichanugrist 89884c194a Update scaffold controller to generate scss file if Sass is available 2011-04-15 00:32:27 +08:00
David Heinemeier Hansson 6c91b699bf The controller and resource generators will now automatically produce asset stubs (this can be turned off with --skip-assets). These stubs will use Coffee and Sass, if those libraries are available. [DHH] 2011-04-14 12:23:21 +02:00
Xavier Noria 66e43aa1a8 updates railties CHANGELOG 2011-04-13 13:40:43 +02:00
Prem Sichanugrist 22a3416298 Add --old-style-hash option to force creating old style hash on Ruby 1.9
That means if you don't like the new syntax, you can pass --old-style-hash to force Rails to generate code with hash rockets.
2011-04-10 16:47:52 +08:00
Prem Sichanugrist 74960c3976 Rails will now generate Ruby 1.9 style hash when running app 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.
2011-04-10 16:47:51 +08:00
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
Prem Sichanugrist c0efc4009a Make scaffold_controller generator generate code for JSON response instead of XML
It seems like a lot of people are using JSON in their API more than XML nowadays, so Rails should follow that convention by providing the JSON format block in scaffold_controller by default.

This patch has been requested by DHH
2011-04-10 16:47:49 +08:00
David Heinemeier Hansson 0eb6e5e270 Moved Turn activation/dependency to railties 2011-03-31 16:20:59 -07:00
David Heinemeier Hansson caf0a72c85 Direct logging of Active Record to STDOUT so it's shown inline with the results in the console [DHH] 2011-03-31 14:33:24 -07:00
Prem Sichanugrist 2c0c4d754e Add `config.force_ssl` configuration which will load `Rack::SSL` middleware if set to true
This will allow user to be able to force all requests to be under HTTPS protocol.

This commit was a request from DHH. Special thanks to Josh Peek as well for making `Rack::SSL`.
2011-03-27 13:27:23 -07:00
Piotr Sarnacki d988fa820a Update changelog with rails plugin new 2010-11-16 00:04:34 +01:00
Santiago Pastorino 460c4efd71 Merge CHANGELOGs from 3-0-stable 2010-10-18 12:24:41 -02:00
Xavier Noria 2561c6ae64 fixes spelling of jQuery and Prototype 2010-10-12 22:57:13 +02:00
Santiago Pastorino 933f745dcb Railties changelog updated with -j parameter 2010-10-11 20:31:14 -02:00
José Valim cba395dab9 Update CHANGELOG. 2010-10-10 12:43:26 +02:00
Carlhuda d8d8334a0b Update changelog 2010-09-13 16:06:40 -07:00
Piotr Sarnacki ec6fa6d3ef Modified changelog for 3.1.0
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-06 14:38:41 +02:00
Jeremy Kemper b861942691 Update CHANGELOGs for 3.0 release and upcoming 3.1 2010-08-29 22:06:48 -07:00
Jeremy Kemper 0d0c46abd1 Clean up CHANGELOGs 2010-08-28 15:45:14 -07:00
Santiago Pastorino b451de0d6d Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
David Heinemeier Hansson 856fc4bbc3 Prep for RC 2010-07-26 12:53:25 -05:00
Xavier Noria 92669b8320 application generation: --skip-testunit and --skip-activerecord renamed to --skip-test-unit and --skip-active-record respectively
Reason is their proper spellings are "Test::Unit" and "Active Record".
Option names and descriptions have been revised, as well as some method
names and minor details here and there.
2010-07-25 22:55:38 +02:00
José Valim 325592038e Fix typo on CHANGELOG. 2010-07-20 00:22:34 -07:00
José Valim b22c11fa53 Add missing entries and tidy up CHANGELOG. 2010-07-19 15:14:26 +02:00
José Valim dd8b7417a9 Update CHANGELOGs. 2010-06-28 11:37:14 +02:00
Xavier Noria 6f83a5036d renames load_(once_)paths to autoload_(once_)paths in dependencies and config 2010-06-24 00:17:28 +02:00
Xavier Noria 61fc7a4550 abort generation/booting on Ruby 1.9.1 2010-06-10 21:49:45 +02:00
Chad Fowler dcc758acb0 detect being inside a rails application even from a subdirectory
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
2010-06-10 14:16:45 -04:00
David Heinemeier Hansson 32d4330b81 Get ready for beta 4 2010-06-08 14:47:02 -04:00
wycats 53efdc2eef Update CHANGELOG 2010-06-03 23:32:11 +10:00
Jeremy Kemper 69a9669d9d Missing changelog heading 2010-05-23 09:46:31 -07:00
David Heinemeier Hansson 4c8af9bf51 Update changelogs for release 2010-04-13 12:14:54 -07:00
Jeremy Kemper ec8e747960 Partially revert "A new application now comes with a layout and a stylesheet."
This reverts commit ea2c5fa804.

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 6690d66292 Rename config.cookie_secret to config.secret_token and pass it as configuration in request.env. This is another step forward removing global configuration. 2010-04-05 12:00:24 +02:00
David Heinemeier Hansson f0364d87f0 Release is today, yo 2010-04-01 14:20:03 -07:00