목록dev (33)
Ssul's Blog
1. 저장할 폴더 최상위에서 git init실행 $ git init 2. 폴더내 모든파일을 commit 대기중으로 만들기 git add . git status //확인하면, 빨간건 아직 커밋 대기전, 녹색은 커밋되었음 3. 모든 파일 커밋해주기 git commit -m "first commit" git status //확인하면, 다 사라짐 -> 커밋완료 4. origin 이름에 git의 repository주소 저장하고, 커밋한 파일을 origin에 전송 git remote add origin https://github.com/여러분 주소 (* git remote -v 하면 저장된 저장소 주소들 나옴) git push -u origin master 5. 수정한 파일 반영 git add . git stat..
1. devise gem을 활용하여 회원가입 기능 추가 2. 회원정보 추가 app/controllers/application_controller.rb before_action :configure_permitted_parameters, if: :devise_controller? protected def configure_permitted_parameters devise_parameter_sanitizer.permit(:sign_up, keys: [:name, :phone1, :phon2, :birth, :status]) devise_parameter_sanitizer.permit(:account_update, keys: [:name, :phone1, :phon2, :birth, :status]) end 새..
그동안 배웠던 레일즈를 활용하여 개발 프로젝트를 하고자 한다. 크게는 LMS를 개발할 예정이고, 그중 첫 기능인 자기관리 시스템을 개발할 것이다. User email password name phone1 phone2 birth status(parents|students) Habit(습관) title goal(습관완료시 변화) user:references Diary(일기) emotion content image day user:references Goal(목표관리) title day completed user:references ClassGoal ClassName has many Users :references :references user:references user:references user:refe..