Permalink
Browse files

Updated examples to use ApplicationController instead of AbstractAppl…

…icationController

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@161 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
dhh committed Dec 15, 2004
1 parent 17a74d9 commit 232443062e309033d39ccd75a3dd9888ff21c345
Showing with 10 additions and 7 deletions.
  1. +10 −7 actionpack/CHANGELOG
View
@@ -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,31 +11,31 @@
* 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 %>
helper :post
...produces this on post as singular_name:
- class SomeController < AbstractApplicationController
+ class SomeController < ApplicationController
scaffold :post
helper :post
...where as:
- class SomeController < AbstractApplicationController
+ class SomeController < ApplicationController
<% if options[:scaffold] -%>
scaffold :<%= singular_name %>
<% end -%>
helper :post
...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

0 comments on commit 2324430

Please sign in to comment.