-
- # GET /system_pictures/1
- # GET /system_pictures/1.json
- def show
- @system_picture = SystemPicture.show(params[:id], @author)
-
- respond_to do |format|
- opt = {:type => @system_picture.mime_type, :disposition=>"inline"}
- format.png { send_data(@system_picture.restore, opt ) }
- format.gif { send_data(@system_picture.restore, opt ) }
- format.jpeg { send_data(@system_picture.restore, opt ) }
- format.html # show.html.erb
- format.json { render json: @system_picture.to_json(SystemPicture.show_json_opt)}
- end