Sha256: 1b4cd8808f65b3d238f5ca40e452c0bbaf211fc42a29e786876636adf0d639ab

Contents?: true

Size: 232 Bytes

Versions: 3

Compression:

Stored size: 232 Bytes

Contents

class FeedbacksController < ApplicationController
  def create
    @feedback = Feedback.create(feedback_params)
  end

  private

  def feedback_params
    params.require(:feedback).permit(:name, :phone, :email, :message)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
adminos-1.0.0.pre.rc.5 lib/generators/templates/feedback/auto/app/controllers/feedbacks_controller.rb
adminos-1.0.0.pre.rc.4 lib/generators/templates/feedback/auto/app/controllers/feedbacks_controller.rb
adminos-1.0.0.pre.rc.3 lib/generators/templates/feedback/auto/app/controllers/feedbacks_controller.rb