document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1.     def update
  2.     @post = Post.find(params[:id])
  3.    
  4.     if @post.update_attributes(params[:post])
  5.         redirect_to posts_path, :notice => "Tu post se ha actualizado"
  6.     else
  7.         render "edit"
  8.     end
  9. end
');