Skip to content
This repository
Browse code

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
  • Loading branch information...
commit 46e68538c08d751554b2c6f512659993ef62c218 1 parent 19da52d
Leon Breedt authored May 31, 2005
2  actionwebservice/CHANGELOG
... ...
@@ -1,5 +1,7 @@
1 1
 *SVN*
2 2
 
  3
+* Fix scaffolding template paths, it was broken on Win32
  4
+
3 5
 * Fix that functional testing of :layered controllers failed when using the SOAP protocol
4 6
 
5 7
 * Allow invocation filters in :direct controllers as well, as they have access to more information regarding the web service request than ActionPack filters
18  actionwebservice/TODO
... ...
@@ -1,6 +1,24 @@
1 1
 = Post-1.0
  2
+  - Document/Literal SOAP support
  3
+    - URL-based dispatching, URL identifies method
  4
+
2 5
   - Add :rest dispatching mode, a.l.a. Backpack API. Clean up dispatching
3 6
     in general. Support vanilla XML-format as a "Rails" protocol?
  7
+    XML::Simple deserialization into params?
  8
+
  9
+      web_service_dispatching_mode :rest
  10
+
  11
+      def method1(params)
  12
+      end
  13
+
  14
+      def method2(params)
  15
+      end
  16
+
  17
+
  18
+      /ws/method1
  19
+        <xml>
  20
+      /ws/method2
  21
+        <yaml>
4 22
 
5 23
   - Allow locking down a controller to only accept messages for a particular
6 24
     protocol.  This will allow us to generate fully conformant error messages
2  actionwebservice/lib/action_web_service/scaffolding.rb
@@ -117,7 +117,7 @@ def render_invocation_scaffold(action)
117 117
             end
118 118
 
119 119
             def scaffold_path(template_name)
120  
-              Pathname.new(File.dirname(__FILE__) + "/templates/scaffolds/" + template_name + ".rhtml").realpath.to_s
  120
+              File.dirname(__FILE__) + "/templates/scaffolds/" + template_name + ".rhtml"
121 121
             end
122 122
 
123 123
             def reset_invocation_response

0 notes on commit 46e6853

Please sign in to comment.
Something went wrong with that request. Please try again.