From 46e68538c08d751554b2c6f512659993ef62c218 Mon Sep 17 00:00:00 2001 From: Leon Breedt Date: Tue, 31 May 2005 02:50:02 +0000 Subject: [PATCH] fix scaffolding template paths (Pathname does weird things on Win32) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1375 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionwebservice/CHANGELOG | 2 ++ actionwebservice/TODO | 18 ++++++++++++++++++ .../lib/action_web_service/scaffolding.rb | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/actionwebservice/CHANGELOG b/actionwebservice/CHANGELOG index 7417e22bdf..fd3621f023 100644 --- a/actionwebservice/CHANGELOG +++ b/actionwebservice/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Fix scaffolding template paths, it was broken on Win32 + * Fix that functional testing of :layered controllers failed when using the SOAP protocol * Allow invocation filters in :direct controllers as well, as they have access to more information regarding the web service request than ActionPack filters diff --git a/actionwebservice/TODO b/actionwebservice/TODO index c78cffb2e1..7c022c14cb 100644 --- a/actionwebservice/TODO +++ b/actionwebservice/TODO @@ -1,6 +1,24 @@ = Post-1.0 + - Document/Literal SOAP support + - URL-based dispatching, URL identifies method + - Add :rest dispatching mode, a.l.a. Backpack API. Clean up dispatching in general. Support vanilla XML-format as a "Rails" protocol? + XML::Simple deserialization into params? + + web_service_dispatching_mode :rest + + def method1(params) + end + + def method2(params) + end + + + /ws/method1 + + /ws/method2 + - Allow locking down a controller to only accept messages for a particular protocol. This will allow us to generate fully conformant error messages diff --git a/actionwebservice/lib/action_web_service/scaffolding.rb b/actionwebservice/lib/action_web_service/scaffolding.rb index d2e74b095c..ff9a23b1e8 100644 --- a/actionwebservice/lib/action_web_service/scaffolding.rb +++ b/actionwebservice/lib/action_web_service/scaffolding.rb @@ -117,7 +117,7 @@ def render_invocation_scaffold(action) end def scaffold_path(template_name) - Pathname.new(File.dirname(__FILE__) + "/templates/scaffolds/" + template_name + ".rhtml").realpath.to_s + File.dirname(__FILE__) + "/templates/scaffolds/" + template_name + ".rhtml" end def reset_invocation_response -- GitLab