Sha256: 714699095f215690913d844b64b079da6c8c7f73ac18c6de59c985d9c7d7c15f
Contents?: true
Size: 325 Bytes
Versions: 18
Compression:
Stored size: 325 Bytes
Contents
class RecordsController < ApplicationController def create Record.create record_params render nothing: true end def update Record.find(params[:id]).update_attributes record_params render nothing: true end private def record_params params.require(:record).permit [:field1, :field2] end end
Version data entries
18 entries across 18 versions & 1 rubygems