Format FeedbackController like the other controllers
This commit is contained in:
parent
d504af3216
commit
05d2988f61
1 changed files with 6 additions and 4 deletions
|
@ -1,6 +1,8 @@
|
||||||
class NewUser::FeedbacksController < UserController
|
module NewUser
|
||||||
def create
|
class FeedbacksController < UserController
|
||||||
current_user.feedbacks.create!(rating: params[:rating])
|
def create
|
||||||
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)}."
|
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)}."
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue