Sha256: 56b084acdd7f2ac63d985454a2bb6d98602ba0a095814e4e5f289e6322ad6dc2
Contents?: true
Size: 469 Bytes
Versions: 5
Compression:
Stored size: 469 Bytes
Contents
class SupportRequestsController < ApplicationController def new @support_request = SupportRequest.new end def create @support_request = SupportRequest.new(support_request_params) if @support_request.save redirect_to new_support_request_path, notice: 'Support Request created.' else render :new end end private def support_request_params params.require(:support_request).permit(:message, :subject, :beespew) end end
Version data entries
5 entries across 5 versions & 1 rubygems