Sha256: 624cd0c071673b392e85dc76b4e331e4f73df2fe30bdffc176d2572f54ad135a
Contents?: true
Size: 334 Bytes
Versions: 1
Compression:
Stored size: 334 Bytes
Contents
module PandaCms class FormSubmissionsController < ApplicationController def create vars = params.except(:authenticity_token, :controller, :action, :id) PandaCms::FormSubmission.create!(form_id: params[:id], data: vars.to_unsafe_h) redirect_to PandaCms::Form.find(params[:id]).completion_path end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
panda_cms-0.3.7 | app/controllers/panda_cms/form_submissions_controller.rb |