Sha256: 397755d57f8b492cc7ea47a45f145a0d0b21ef361a731090859880e0961d8604
Contents?: true
Size: 403 Bytes
Versions: 6
Compression:
Stored size: 403 Bytes
Contents
module RailsPallet class UploadsController < ApplicationController self.responder = RailsPalletResponder respond_to :json skip_before_action :verify_authenticity_token def create new_upload = RailsPallet::Upload.create(permitted_params) respond_with new_upload, status: :created end private def permitted_params params.permit(:file) end end end
Version data entries
6 entries across 6 versions & 1 rubygems