Sha256: 7d31c1c7df1eb7d6aeab180b2785519e71798c77cce30f4d8ed318f8dfd80158

Contents?: true

Size: 551 Bytes

Versions: 53

Compression:

Stored size: 551 Bytes

Contents

class Auth::Workflow::OrdersController < Auth::Workflow::WorkflowController
  
  	def create
  		@model.errors.add(:_id,"orders cannot be directly created.")
  		respond_to do |format|
	        format.json do 
	            render json: {
	              id: @model.id.to_s,
	              errors: @model.errors
	            }.to_json, status: 422
	        end
	        format.html do 
	            render :new
	        end
	        format.js do 
	            render :partial => "show.js.erb", locals:{model: @model}
	        end
	    end

  	end	
	
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
wordjelly-auth-1.6.0 app/controllers/auth/workflow/orders_controller.rb
wordjelly-auth-1.5.9 app/controllers/auth/workflow/orders_controller.rb
wordjelly-auth-1.5.8 app/controllers/auth/workflow/orders_controller.rb
wordjelly-auth-1.5.7 app/controllers/auth/workflow/orders_controller.rb
wordjelly-auth-1.5.6 app/controllers/auth/workflow/orders_controller.rb
wordjelly-auth-1.5.5 app/controllers/auth/workflow/orders_controller.rb
wordjelly-auth-1.5.4 app/controllers/auth/workflow/orders_controller.rb
wordjelly-auth-1.5.3 app/controllers/auth/workflow/orders_controller.rb
wordjelly-auth-1.5.2 app/controllers/auth/workflow/orders_controller.rb
wordjelly-auth-1.5.1 app/controllers/auth/workflow/orders_controller.rb
wordjelly-auth-1.5.0 app/controllers/auth/workflow/orders_controller.rb
wordjelly-auth-1.4.9 app/controllers/auth/workflow/orders_controller.rb
wordjelly-auth-1.4.8 app/controllers/auth/workflow/orders_controller.rb
wordjelly-auth-1.4.7 app/controllers/auth/workflow/orders_controller.rb
wordjelly-auth-1.4.6 app/controllers/auth/workflow/orders_controller.rb
wordjelly-auth-1.4.5 app/controllers/auth/workflow/orders_controller.rb
wordjelly-auth-1.4.4 app/controllers/auth/workflow/orders_controller.rb
wordjelly-auth-1.4.3 app/controllers/auth/workflow/orders_controller.rb
wordjelly-auth-1.4.2 app/controllers/auth/workflow/orders_controller.rb
wordjelly-auth-1.4.0 app/controllers/auth/workflow/orders_controller.rb