Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 360cccb

Browse files
author
mike
committed
fixed article creation bug
git-svn-id: http://svn.pdxruby.org/repos/www/trunk@207 f0fbaf97-c700-0410-a5eb-8ea856f8537e
1 parent 575f092 commit 360cccb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/controllers/articles_controller.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class ArticlesController < ApplicationController
2-
before_filter :member_is_author, :only => [ :edit, :create, :destroy, :update ]
2+
before_filter :member_is_author, :only => [ :edit, :destroy, :update ]
33
before_filter :authenticate, :only => [ :new ]
44

55
def index
@@ -21,6 +21,7 @@ def new
2121

2222
def create
2323
@article = Article.new(params[:article])
24+
@article.member = session[:member]
2425
if @article.save
2526
flash[:notice] = 'Article was successfully created.'
2627
redirect_to :action => 'list'

0 commit comments

Comments
 (0)