Sha256: 404d5664345c501a7033fcf5e122bad7f5fc809270ecb04e167bd12301f9487e
Contents?: true
Size: 394 Bytes
Versions: 7
Compression:
Stored size: 394 Bytes
Contents
class ApplicationController < ActionController::Base protect_from_forgery respond_to :html, :json def action1 render :json => {:date => Time.now} end def action2 render :inline => "#{request.inspect}" end def action3 render :json => {:success => true, :date => Time.now, :fileContents => params[:fileUpload1].nil? ? "": params[:fileUpload1].read} end end
Version data entries
7 entries across 7 versions & 1 rubygems