Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Michael Elfassy's Profile

GitHub User: elfassy

Site: http://napps.ca

Comments by Michael Elfassy

Avatar
ruby
= f.predicate_select only: Proc.new{|k| !(k =~ /_(any|all)$/) }

or in your case

ruby
= f.predicate_select only: Proc.new{|k| ['eq'].include?(k) }
Avatar

There's a problem with the escaping in firefox 10. Apparently it will escape the escaped_country variable again:

escaped_country === "United\\ States"
true

escaped_country === "United\ States"
false

And it will break the filter...

Any idea what browser we actually need to escape first? I've tested with IE8 and chrome and they also both work with \' in the country name without escaping.

Avatar

I'm really curious to see Ryan's take on http://batmanjs.org/ (please do cover it)

Avatar

How does one use queue_classic with rubber/capistrano? It seems like rake qc:work needs to run, just not sure where to put that command (in deploy.rb?) Thanks!