everything

why not?

On Wed, Oct 1, 2014 at 2:57 PM, Peter Fry <notifications@github.com> wrote:

> In app/controllers/hack_days_controller.rb:
>
> > +      session["remaining_vote#{params[:id]}"] ||= 3
> > +      @votes_left = session["remaining_vote#{params[:id]}"]
> > +    else
> > +      redirect_to "/404.html"
> > +    end
> > +  end
> > +
> > +  def create
> > +    @title = params[:title]
> > +    @new_hack_day = HackDay.new(title: @title)
> > +    @projects = params[:projects]
> > +    @projects.select!(&:present?)
> > +    if(@projects.length >= 2)
> > +      unless @new_hack_day.save
> > +        flash.now[:error] = "Enter a title"
> > +        render "new" and return
>
> Don't use "and"
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/immad/test-vote/pull/1/files#r18311064>.
>



-- 
Co-founder, Heyzap.com
Cell: +1 415 994 7093
Office: +1 415 369 9033
Skype: i.akhund

My Blog: http://immadsnewworld.com
Twitter: twitter.com/immad
Facebook: facebook.com/immad