Skip to content

Instantly share code, notes, and snippets.

@jonpaul
Created June 20, 2011 21:36
Show Gist options
  • Save jonpaul/1036643 to your computer and use it in GitHub Desktop.
Save jonpaul/1036643 to your computer and use it in GitHub Desktop.
.each do doesn't enumerate my collection(I'm collecting wrong?)
def self.supernav
new_array = ['Home', 'Referring Physicians', 'Patient Pre-Registration', 'Locations', 'About Us', 'Contact Us']
Page.where(:title => new_array)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment