aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-12-15 11:40:11 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-12-15 11:40:11 +0000
commit232443062e309033d39ccd75a3dd9888ff21c345 (patch)
treea0bbe368a994f1a6510320c511851e6ab65146a6 /actionpack/CHANGELOG
parent17a74d90b667e6e14e3488c2e78ae75696857cf8 (diff)
downloadrails-232443062e309033d39ccd75a3dd9888ff21c345.tar.gz
rails-232443062e309033d39ccd75a3dd9888ff21c345.tar.bz2
rails-232443062e309033d39ccd75a3dd9888ff21c345.zip
Updated examples to use ApplicationController instead of AbstractApplicationController
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@161 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r--actionpack/CHANGELOG17
1 files changed, 10 insertions, 7 deletions
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