Why does simple form not show validation error messages in Rails?

前端 未结 0 519
面向向阳花
面向向阳花 2021-01-29 04:21

My controller:

  def create
    @comment = Comment.new(comment_params)
    @recipe = Recipe.find(params[:recipe_id])
    @comment.recipe = @recipe
    if @comment         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题