diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-12 01:56:55 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-12 01:56:55 +0000 |
commit | 6e3e5cadfbd7db407364bf2571a5003cf3733480 (patch) | |
tree | cee5b1b08e026a7a7e679fdf5b7d42236f9eea07 /actionpack/CHANGELOG | |
parent | 8e8b6b9e403cdeb57d0ba373bff6498dc7f9f5df (diff) | |
download | rails-6e3e5cadfbd7db407364bf2571a5003cf3733480.tar.gz rails-6e3e5cadfbd7db407364bf2571a5003cf3733480.tar.bz2 rails-6e3e5cadfbd7db407364bf2571a5003cf3733480.zip |
Added option to render action/template/file of a specific extension (and here by template type). This means you can have multiple templates with the same name but a different extension [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3841 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r-- | actionpack/CHANGELOG | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 575bb0f534..afe9a4e6bc 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,19 @@ *SVN* +* Added option to render action/template/file of a specific extension (and here by template type). This means you can have multiple templates with the same name but a different extension [DHH]. Example: + + class WeblogController < ActionController::Base + def index + @posts = Post.find :all + + respond_to do |type| + type.html { render } # renders weblog/index.rhtml + type.xml { render :action => "index.rxml" } + type.js { render :action => "index.rjs" } + end + end + end + * Added better support for using the same actions to output for different sources depending on the Accept header [DHH]. Example: class WeblogController < ActionController::Base |