From 232443062e309033d39ccd75a3dd9888ff21c345 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 15 Dec 2004 11:40:11 +0000 Subject: Updated examples to use ApplicationController instead of AbstractApplicationController git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@161 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/CHANGELOG | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'actionpack/CHANGELOG') diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 7e81100979..c975538253 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,8 @@ *SVN* +* Added that controllers will now search for a layout in $template_root/layouts/$controller_name.r(html|xml), so PostsController will look + for layouts/posts.rhtml or layouts/posts.rxml and automatically configure this layout if found #307 [Marcel] + * Added FormHelper#radio_button to work with radio buttons like its already possible with check boxes [Michael Koziarski] * Added TemplateError#backtrace that makes it much easier to debug template errors from unit and functional tests @@ -8,7 +11,7 @@ * Added option to ERB templates to swallow newlines by using <% if something -%> instead of just <% if something %>. Example: - class SomeController < AbstractApplicationController + class SomeController < ApplicationController <% if options[:scaffold] %> scaffold :<%= singular_name %> <% end %> @@ -16,7 +19,7 @@ ...produces this on post as singular_name: - class SomeController < AbstractApplicationController + class SomeController < ApplicationController scaffold :post @@ -24,7 +27,7 @@ ...where as: - class SomeController < AbstractApplicationController + class SomeController < ApplicationController <% if options[:scaffold] -%> scaffold :<%= singular_name %> <% end -%> @@ -32,7 +35,7 @@ ...produces: - class SomeController < AbstractApplicationController + class SomeController < ApplicationController scaffold :post helper :post @@ -137,13 +140,13 @@ * Added that controllers will automatically require their own helper if possible. So instead of doing: - class MsgController < AbstractApplicationController + class MsgController < ApplicationController helper :msg end ...you can just do: - class MsgController < AbstractApplicationController + class MsgController < ApplicationController end * Added dependencies_on(layer) to query the dependencies of a controller. Examples: @@ -154,7 +157,7 @@ * Added a new dependency model with the class methods model, service, and observer. Example: - class MsgController < AbstractApplicationController + class MsgController < ApplicationController model :post, :comment, :attachment service :notification_service observer :comment_observer -- cgit v1.2.3