From bea737eb5a5f51ee7fbc2e60d870cee5936bdfb0 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Tue, 22 Nov 2005 08:37:04 +0000 Subject: Make ActionController's render honor the :locals option when rendering a :file. Closes #1665. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/fixtures/test/render_file_with_ivar.rhtml | 1 + actionpack/test/fixtures/test/render_file_with_locals.rhtml | 1 + 2 files changed, 2 insertions(+) create mode 100644 actionpack/test/fixtures/test/render_file_with_ivar.rhtml create mode 100644 actionpack/test/fixtures/test/render_file_with_locals.rhtml (limited to 'actionpack/test/fixtures') diff --git a/actionpack/test/fixtures/test/render_file_with_ivar.rhtml b/actionpack/test/fixtures/test/render_file_with_ivar.rhtml new file mode 100644 index 0000000000..8b8a449236 --- /dev/null +++ b/actionpack/test/fixtures/test/render_file_with_ivar.rhtml @@ -0,0 +1 @@ +The secret is <%= @secret %> diff --git a/actionpack/test/fixtures/test/render_file_with_locals.rhtml b/actionpack/test/fixtures/test/render_file_with_locals.rhtml new file mode 100644 index 0000000000..ebe09faee6 --- /dev/null +++ b/actionpack/test/fixtures/test/render_file_with_locals.rhtml @@ -0,0 +1 @@ +The secret is <%= secret %> -- cgit v1.2.3