FeedbacksController should inherit from UserController
This commit is contained in:
parent
c37e672112
commit
d504af3216
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
class NewUser::FeedbacksController < ApplicationController
|
||||
class NewUser::FeedbacksController < UserController
|
||||
def create
|
||||
current_user.feedbacks.create!(rating: params[:rating])
|
||||
flash.notice = "Merci de votre retour, si vous souhaitez nous en dire plus, n'hésitez pas à #{view_context.contact_link('nous contacter', type: Helpscout::FormAdapter::TYPE_AMELIORATION)}."
|
||||
|
|
Loading…
Reference in a new issue