Method: FeatureBox::CommentsController#update

Defined in:
app/controllers/feature_box/comments_controller.rb

#updateObject



29
30
31
32
33
34
35
36
# File 'app/controllers/feature_box/comments_controller.rb', line 29

def update
  @comment.text = params[:comment][:text]
  if @comment.save
    redirect_to @comment.suggestion, notice: 'Comment was successfully updated.' 
  else
    render action: "edit" 
  end
end