[Ruby on Rails] gmail gem을 이용한 이메일 전송 1. Gemfile 에 gem 'gmail' 추가 2. bundle install 로 gmail gem 설치 3. 입력 폼 작성 입력폼의 view 페이지로 email_send 페이지의 인자값으로 email, title, content를 전달한다. 4. 해당 Controller의 Action에 기능 추가 입력폼에서 전송된 인자값들을 email, title, content 변수에 저장한다. Gmail.connect()로 계정에 로그인을 하고 해당 변수에 저장된 email 주소로 이메일을 전송한다.여기서 your_gmail_id 와 your_gmail_password는 gmail 의 계정과 패스워드를 입력하면 된다. 5. 결과 view 작성 ..
#253 CarrierWave File UploadsLet’s say that we are building a site that allows artists to upload their paintings and display them in a gallery. Part of the site is already built: there is a page that lists the galleries, with a link to each gallery and a page that shows a gallery’s pictures. Each painting has a name and a placeholder for an image but no image. If we try to add a new painting to ..
- Total
- Today
- Yesterday
- 투자전략
- 로봇관련주
- ruby on rails
- 한화에어로스페이스
- 개인투자자
- 지정학적리스크
- 알고리즘
- 이펙티브 자바
- HBM
- 자료구조
- 코스피
- 방산주
- 엔비디아
- Java
- AI반도체
- Rails
- 한국항공우주
- 삼성전자
- 반도체관련주
- 주가전망
- 주식투자
- 한미반도체
- 해운주
- 호르무즈해협
- SK하이닉스
- 현대차
- 원달러환율
- 한화오션
- 국제유가
- ruby
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |