안녕하세요 강정호입니다. 오늘은 레일즈 프로젝트를 시작하는 방법에 대해 설명드리겠습니다. 레일즈 프로젝트가 시작이 안되서 2일동안 삽질을 하였네요 ㅠㅠ 아까운 내 2일... 다시는 이런 실수를 하지 않기 위해 다음과 같이 기록합니다. RubyMine IDE를 사용하여 설명하겠습니다. 1단계 : Ruby API 프로젝트를 생성합니다. 위와 같은 설정으로 Rails API를 생성합니다. 2단계 : Gemfile 파일을 확인한다. Gemfile 파일을 확인해서 gem 라이브러리가 mysql로 설정되어 있는지 확인합니다. 제가 에러가 난 이유가 이 부분이 sqlite3로 되어 있어서 에러가 발생했습니다. 3단계 : database.yml 설정 변경하기로컬 컴퓨터에 있는 mysql의 root계정, 비밀번호, 데이..
sample_hash={'a'=> 1, 'b'=>2, 'c'=>3}my_details={:name=>'mashrur', :favcolor=>'red'}my_details['favcolor']sample_hash['a'] my_hash={a:2} another_hash={a:1, b:2, c:3} another_hash[:a] #Hash의 키만 가져온다.sample_hash.keys sample_hash.each do |key, value| puts "The class for key is #{key.class} and the value is #{value.class}"end sample_hash.each do |key, value| puts "The class for key is #{key.class} a..
if condition end if condition else end if condition elsif else end def multiploy(first, second) first.to_f * second.to_fend def divide(first, second) first.to_f / second.to_fend def mod(first, second) first.to_i % second.to_iend puts "Where do you want to do? 1) multiply 2) divide 3) subtract 4) find remainder"prompt = gets.chompputs "enter in your first number"first_number=gets.chompputs "Enter..
puts "Simple calculator"25.times {print "-"}puts "Enter the first Number"num_1=gets.chompputs "Enter the second Number"#gets.chomp는 String으로 받아온다.num_2=gets.chompputs "The first number multipled by the second number is #{num_1.to_i * num_2.to_i}" puts "나누기 : The first number division by the second number is #{num_1.to_i / num_2.to_i}" puts "더하기 : The first number plus by the second number is #{n..
안녕하세요 강정호입니다. 오늘은 루비에 대해서 공부 해보겠습니다. String concatenation# String concatenationsentence = "My name is jake"p sentence first_name = "Jake"last_name = "hello"puts first_name+" "+last_name Java와 마찬가지로 "+" 기호를 이용해서 단어와 단어를 연결할 수 있다. String interpolationfirst_name = "Jake"last_name = "hello" #String interpolationputs "My first name is haja and #{first_name} my last name is #{last_name}" String을 "+" 기..
- Total
- Today
- Yesterday
- 개발자 회고
- 깃허브
- 바
- pop_back
- 2023년
- 유즈케이스
- 관계대수
- 인셉션
- front
- docker
- 월급쟁이부자들
- 내년은 빡세게!!
- 작성 방법
- push_back
- 깃
- GIT
- Inception
- github
- 재테크공부
- 파라메터
- 폭포수
- 부동산공부
- 월부닷컴
- Spring boot
- Use case
- 열반스쿨기초반
- 도커
- resize
- ```````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````
- 회고
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |