app/controllers/perfs_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# encoding: utf-8

class PerfsController < ApplicationController
  def create
    perf = Perf.new(params[:perf])
    perf.user_id = current_user_id

    ok = perf.save
    render text: ok ? "ok" : "fail"
  end
end