Sha256: 091d66f6f84c64c56c19bc100f1796f29d10a7c73bf481fae6edcd7b1a545d04
Contents?: true
Size: 548 Bytes
Versions: 9
Compression:
Stored size: 548 Bytes
Contents
module Crowdblog module Admin class AssetsController < Crowdblog::Admin::BaseController # TODO: Skipping filters is the worst solution ever to this problem # Someone should fix the uploadify.js thing skip_before_filter :verify_authenticity_token, :only => :create skip_before_filter :authorize! def create @post = Post.find(params[:post_id]) asset = @post.assets.build asset.attachment = params['attachment'] asset.save! render json: asset end end end end
Version data entries
9 entries across 9 versions & 1 rubygems