[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
- 알고리즘
- SK하이닉스
- javascript
- ruby on rails
- 반도체관련주
- install
- Rails
- ruby
- 이수페타시스
- 이펙티브 자바
- 자료구조
- 삼성전자
- codecademy
- Message Queue
- 웹프로그래밍
- rabbitmq
- 한미반도체
- Java
- CSS
- html
- HBM
- 방산주
- 국제유가
- 프로그래밍
- ubuntu
- OpenStack
- 흥구석유
- 투자전략
- 주식투자
- 한화에어로스페이스
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
