Skip to content

Instantly share code, notes, and snippets.

@aya-soft
Created December 14, 2016 12:23
Show Gist options
  • Save aya-soft/e49dd04c5c711d76eee4f2fd6c4ef350 to your computer and use it in GitHub Desktop.
Save aya-soft/e49dd04c5c711d76eee4f2fd6c4ef350 to your computer and use it in GitHub Desktop.
Ошибку в условии сам найдешь?
redirect_to catalog_path and return if not params[:vendor].present? or params[:search_string].present?
@romhi
Copy link

romhi commented Dec 27, 2016

Видимо я до твоего сообщения уже нашел, сейчас это выглядит так.
redirect_to catalog_path and return if not params[:vendor].present? and not params[:search_string].present?
Я помню была небольшая проблемка с редиректом сейчас ее нет.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment