Guest User

Untitled

a guest
Nov 18th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.22 KB | None | 0 0
  1.  def update
  2.     @product = Product.find(params[:id])
  3.     if @product.update_attributes(params[:product])
  4.       redirect_to @product, notice: "Successfully created product."
  5.     else
  6.       render :edit
  7.     end
  8.   end
Add Comment
Please, Sign In to add comment