From 7dcd0d7d967c613f4e447ba6330e1f616b93c1a3 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 29 Feb 2008 18:09:23 +0000 Subject: Added that requests with JavaScript as the priority mime type in the accept header and no format extension in the parameters will be treated as though their format was :js when it comes to determining which template to render. This makes it possible for JS requests to automatically render action.js.rjs files without an explicit respond_to block [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8956 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/fixtures/test/greeting.js.rjs | 1 + 1 file changed, 1 insertion(+) create mode 100644 actionpack/test/fixtures/test/greeting.js.rjs (limited to 'actionpack/test/fixtures') diff --git a/actionpack/test/fixtures/test/greeting.js.rjs b/actionpack/test/fixtures/test/greeting.js.rjs new file mode 100644 index 0000000000..469fcd8e15 --- /dev/null +++ b/actionpack/test/fixtures/test/greeting.js.rjs @@ -0,0 +1 @@ +page[:body].visual_effect :highlight \ No newline at end of file -- cgit v1.2.3