Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def create
- @verify = Verify.new(params[:verify])
- respond_to do |format|
- if @verify.save
- format.html { redirect_to( :back, :notice => 'Verified') }
- format.json { render :json => @verify, :status => :created, :location => @verify }
- else
- format.html { render :action => "new" }
- format.xml { render :xml => @verify.errors, :status => :unprocessable_entity }
- format.json { render :json => @verify.errors, :status => :unprocessable_entity }
- end
- end
- {"www" : "wwww"}
- include_root_in_json: true
Add Comment
Please, Sign In to add comment