Experiment with a simple form builder

This commit is contained in:
2020-04-09 14:15:19 +02:00
parent d485b1e62e
commit fd9eddedfc
3 changed files with 13 additions and 27 deletions

View File

@@ -25,10 +25,8 @@ class FormsController < ApplicationController
end
end
if Rails.env.development?
def form
@form = Form.find_by!(token: params[:id])
end
def form
@form = Form.find_by!(token: params[:id])
end
private