app/controllers/phcpress/blog/posts_controller.rb in phcpress-0.2.1b vs app/controllers/phcpress/blog/posts_controller.rb in phcpress-0.3.1b

- old
+ new

@@ -29,28 +29,28 @@ # POST def create @blog_post = Blog::Post.new(blog_post_params) if @blog_post.save - redirect_to blog_posts, notice: 'Post was successfully created.' + redirect_to blog_posts_path, notice: 'Blog post was successfully created.' else render :new end end # PATCH/PUT def update if @blog_post.update(blog_post_params) - redirect_to blog_posts, notice: 'Post was successfully updated.' + redirect_to blog_posts_path, notice: 'Blog post was successfully updated.' else render :edit end end # DELETE def destroy @blog_post.destroy - redirect_to blog_posts, notice: 'Post was successfully destroyed.' + redirect_to blog_posts_path, notice: 'Blog post was successfully destroyed.' end private # Common Callbacks