whats wrong in this one again ?


On Mon, Apr 21, 2014 at 9:48 PM, Ahmed <notifications@github.com> wrote:

> In tutor/app/controllers/posts_controller.rb:
>
> > +	# [Add Post - Story 1.13]
> > +	# Description: This action takes the passed parameters from
> > +	#              the add post form, creates a new Post record
> > +	#              and assigns it to the respective discussion board.If the
> > +	#              creation fails the user is redirected to the form
> > +	# Parameters:
> > +	#	topic_params[]: A list that has all fields entered by the user to in the
> > +	# 					add_post_form
> > +	# Returns:
> > +	# 	flash[:notice]: A message indicating the success or failure of the creation
> > +	# Author: Ahmed Atef
> > +	def create
> > +		@new_post = Post.new(post_params)
> > +		@new_post.views_count = 0
> > +		if lecturer_signed_in?
> > +			@new_post.owner_id = current_lecturer.id
>
> @Ahmed-Atef <https://github.com/Ahmed-Atef> did u fix that?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/alaashafaee/Coolsoft-14/pull/290/files#r11822988>
> .
>