class SessionsController < ApplicationController
  skip_before_filter :authenticate_user!, :only => :new

  def new
    redirect_to buckets_path if current_user

    render :layout => false
  end

  def destroy
    logout!
    redirect_to root_url
  end
end

class SessionsController < ApplicationController
  skip_before_filter :authenticate_user!, :only => :new

  def new
    if current_user
      redirect_to buckets_path
    else
      render :layout => false
    end
  end

  def destroy
    logout!
    redirect_to root_url
  end
end

Fix issue with trying to redirect and render
Fix issue with trying to redirect and render
