멋사 10주차 수업(Tip)
1. 검색 구현하기
a=["강원도","경기도","서울"]
a=%w[강원도 경기도 서울]# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
#
# Examples:
#
# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
# Character.create(name: 'Luke', movie: movies.first)
Student.create(name: "dahye", number: "201411809")
Student.create(name: "seonwook", number: "201411845")2. 반복되는 코드 줄이기(모델)
Last updated