我对线程有以下问题:
更改您的_form.html.haml
_form.html.haml
来自
= form_for new_manage_event_path do |f|
to
= form_for @event do |f|
并在控制器中
def events_params params.require(:manage_event).permit(:name, :address, :sdate, :edate, :contact, :number_of_seats) end