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

- old
+ new

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