Forms edit content

This commit is contained in:
2020-04-26 18:49:40 +02:00
parent d733468abe
commit 8fb3fb7175
12 changed files with 201 additions and 17 deletions

View File

@@ -39,6 +39,10 @@ class FormsController < ApplicationController
end
end
def setup
@form = current_user.forms.find_by!(token: params[:id])
end
def form
@form = Form.find_by!(token: params[:id])
end