Conditional UI predicates for Rails