Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Initial spec passes by cheating

  • Loading branch information...
commit 9bb41cc949f81ee22921d44f05432d4f9c254343 1 parent 1a16e30
Yehuda Katz authored
View
11 merb-rest-server/app/controllers/rest.rb
@@ -0,0 +1,11 @@
+class MerbRestServer::Rest < MerbRestServer::Application
+
+ def index
+ render
+ end
+
+ def show
+ ""
+ end
+
+end
View
2  merb-rest-server/lib/merb_rest_server.rb
@@ -54,7 +54,7 @@ def self.deactivate
def self.setup_router(scope)
# example of a named route
scope.match(%r{(.*)}).defer_to do |req, params|
-
+ {:controller => "merb_rest_server/rest", :action => "show"}
end
# scope.match('/index.:format').to(:controller => 'main', :action => 'index').name(:merb_rest_server_index)
end
Please sign in to comment.
Something went wrong with that request. Please try again.