Skip to content

Instantly share code, notes, and snippets.

@slant
Created March 16, 2011 07:19
Show Gist options
  • Select an option

  • Save slant/872138 to your computer and use it in GitHub Desktop.

Select an option

Save slant/872138 to your computer and use it in GitHub Desktop.
@users.collect(&:name)
>> @users.collect(&:name).join(', ')
=> "Sam, John, Joe"
def self.archived
where(:archived => true)
end
@users.each { |u| user.name }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment