报错 第三课4-6 打字没错但报错

Published on:

app/controllers/groups_controller.rb
def create
@group = Group.new(group_params)

if @group.save
  redirect_to groups_path
else
  render :new
end

end

此段一改就会报错,错误如图
原因:下面的那段代码“redirect_to groups_path end”没有删掉,一直以为要保留。

Comments

comments powered by Disqus