Created
December 14, 2016 12:23
-
-
Save aya-soft/e49dd04c5c711d76eee4f2fd6c4ef350 to your computer and use it in GitHub Desktop.
Ошибку в условии сам найдешь?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
redirect_to catalog_path and return if not params[:vendor].present? or params[:search_string].present? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Видимо я до твоего сообщения уже нашел, сейчас это выглядит так.
redirect_to catalog_path and return if not params[:vendor].present? and not params[:search_string].present?
Я помню была небольшая проблемка с редиректом сейчас ее нет.