If the conditional fails, this will just not interfere with the query.
If it’s possible that account_id will be nil or blank (as on a page
accessed w/o passing any params), tack “&& account_id.present?” onto
the conditional.
-Dave
–
Dave A., the T. Rex of Codosaurus LLC,
secret-cleared freelance software developer
taking contracts in or near NoVa or remote.
See information at http://www.Codosaur.us/.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.