From 50f9946b6bbb74d21a1720f4dfb826fb972bfc32 Mon Sep 17 00:00:00 2001 From: p31729568 Date: Thu, 13 Jun 2019 17:02:18 +0800 Subject: [PATCH] fix --- app/controllers/trainings_controller.rb | 2 -- app/views/trainings/enroll.html.erb | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/controllers/trainings_controller.rb b/app/controllers/trainings_controller.rb index 9612c67f..a74c55f1 100644 --- a/app/controllers/trainings_controller.rb +++ b/app/controllers/trainings_controller.rb @@ -42,8 +42,6 @@ class TrainingsController < ApplicationController Rails.logger.info("##########training_title:#{@training_title}") end - - def pay _pay_params diff --git a/app/views/trainings/enroll.html.erb b/app/views/trainings/enroll.html.erb index 02b5a4d9..7cc642d2 100644 --- a/app/views/trainings/enroll.html.erb +++ b/app/views/trainings/enroll.html.erb @@ -125,7 +125,7 @@ <% end %>

<%= @training_title %>

- <%= form_for (@training || Training.new) do |f| %> + <%= form_for @training do |f| %> <%= hidden_field_tag(:tag_id, @tag_id) %>

基本信息