app/controllers/reviews_controller.rb
#ajax handler to make a review
ajax handler to make a review
ajax handler to make a review
def edit
    @labels = ["Writing","Acting","Directing","Special Effects","Score","Artistic"]
    @review = Review.find(params[:id])
    if @review.draft != ""
      @review.content = @review.draft
    end
    if @review.critic_id != session[:user_id] || @review.event.pub_date <= Date.today
      redirect_to @review
    end
  end
def edit @labels = [ "Writing" , "Acting" , "Directing" , "Special Effects" , "Score" , "Artistic" ] @review = Review . find ( params [ :id ] ) if @review . draft != "" @review . content = @review . draft end if @review . critic_id != session [ :user_id ] || @review . event . pub_date <= Date . today redirect_to @review end end
ajax handler to make a review
ajax handler to make a review