Add about page with feedback functionality
This commit is contained in:
@@ -197,6 +197,11 @@ class UserController < Users::ApplicationController
|
||||
end
|
||||
end
|
||||
|
||||
def feedback
|
||||
UserFeedback.create(user_id: current_user.id, content: params[:feedback].to_s)
|
||||
render json: {}
|
||||
end
|
||||
|
||||
# POST /user/needs_help.json
|
||||
def needs_help
|
||||
respond_to do |format|
|
||||
|
||||
Reference in New Issue
Block a user