Forms edit content

This commit is contained in:
bumi committed 2020-04-26 18:49:40 +02:00
1 parent d733468abe
commit 8fb3fb7175
12 files changed
+201 -17

No files matched your search

+4
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