Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Publishing enabled

  • Loading branch information...
commit a586a9f375230a9d0a5205d4cb2e15ae6473efab 1 parent 92260ef
Daniel Vartanov authored
View
9 presidents/app/controllers/presidents_controller.rb
@@ -8,13 +8,4 @@ class PresidentsController < ApplicationController
def index
@presidents = President.all
end
-
- def create
- president = President.new(params[:entry].to_attributes)
- if president.save
- render :xml => president.to_atom.to_xml, :status => :created
- else
- render :xml => president.errors.to_xml, :status => :bad_request
- end
- end
end
View
10 presidents/config/routes.rb
@@ -1,7 +1,5 @@
-#ActionController::Routing::Routes.draw(:delimiters => ['/', '.', '!', '\(', '\)' ]) do |map|
-ActionController::Routing::Routes.draw do |map|
-# map.resources :presidents
-# map.connect '/presidents(.:format)', :controller => 'presidents', :action => 'index'
- map.resource :presidents
-# map.sdata_resource :presidents #, :formatted_collection_path => true
+ActionController::Routing::Routes.draw(:delimiters => ['/', '.', '!', '\(', '\)' ]) do |map|
+#ActionController::Routing::Routes.draw do |map|
+# map.resource :presidents
+ map.sdata_resource :presidents #, :formatted_paths => true
end
View
BIN  presidents/db/development.sqlite3
Binary file not shown
2  presidents/vendor/plugins/acts_as_sdata
@@ -1 +1 @@
-Subproject commit 0ce6b67bc2215f8850164be9e03f4c0c9900c03a
+Subproject commit ec8d088a8f42288de3832733dc057c9666d0c252
Please sign in to comment.
Something went wrong with that request. Please try again.