#9 new

Cannot use '||' with highlights_on.

Reported by jmesserer | August 30th, 2010 @ 03:48 AM

I am trying to do something like the following:

t.highlights_on ({:controller => :a, :action => :a} || {:controller => :b, :action => :b})

It seems to highlight successfully on the first controller and action but not the 2nd. Is there different syntax that must be used to get this type of conjunctive statement to work?



No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Rails Widgets is a collection of UI widgets for Ruby On Rails that you can put in your own application at the speed of light!

People watching this ticket