Add skip_before_filter :require_login, :only => [:company] in the search_controller