From f3fabecf838fa8642f3ea42302bbb3c79bee2d1c Mon Sep 17 00:00:00 2001 From: f Date: Wed, 22 Jul 2020 20:36:34 -0300 Subject: [PATCH] =?UTF-8?q?despu=C3=A9s=20de=20crear=20o=20modificar=20un?= =?UTF-8?q?=20articulo=20ir=20a=20su=20ficha?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/posts_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 35610b5..07017d3 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -58,7 +58,7 @@ class PostsController < ApplicationController if (@post = service.create.persisted?) @site.touch - redirect_to site_posts_path(@site) + redirect_to site_post_path(@site, @post) else render 'posts/new' end @@ -87,7 +87,7 @@ class PostsController < ApplicationController if service.update.persisted? @site.touch - redirect_to site_posts_path(@site) + redirect_to site_post_path(@site, @post) else render 'posts/edit' end