Class: Uistiti::Lookbook::DummyController

Inherits:
ApplicationController show all
Defined in:
app/controllers/uistiti/lookbook/dummy_controller.rb

Instance Method Summary collapse

Instance Method Details

#errorObject

PUT /lookbook/dummy/error GET /lookbook/dummy/error



13
14
15
16
# File 'app/controllers/uistiti/lookbook/dummy_controller.rb', line 13

def error
  puts params
  render status: 400, json: {:error => 'Bad request'}.to_json
end

#successObject

PUT /lookbook/dummy/success GET /lookbook/dummy/success



7
8
9
# File 'app/controllers/uistiti/lookbook/dummy_controller.rb', line 7

def success
  render status: 200, json: {message: 'OK'}.to_json
end