app/controllers/phcpress/news/posts_controller.rb in phcpress-2.7.5 vs app/controllers/phcpress/news/posts_controller.rb in phcpress-2.8.0

- old
+ new

@@ -19,19 +19,19 @@ #def show #end # Create a New News Post (/news/posts/new) def new - @news_post = News::Post.scoped_to(current_account).new + @news_post = current_user.News::Post.new end # Edit News Post /news/posts/1/edit def edit end # POST def create - @news_post = News::Post.current_user.(news_post_params) + @news_post = current_user.News::Post.(news_post_params) if @news_post.save redirect_to news_posts_path, notice: 'News post was successfully created.' else render :new