RUBY: Ruby on Rails - map()

  dERs = Student.find(:all,:select => "id", :conditions => "")
  dER_ids = dERs.map(&:id)

No comments:

Post a Comment