본문 바로가기 메뉴 바로가기

덕's IT Story

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

덕's IT Story

검색하기 폼
  • 분류 전체보기 (198)
    • IT 이야기 (31)
      • 그 외 (15)
      • 대외활동 소식 (9)
      • 컴퓨터 지식 (7)
    • 클라우드&오픈스택 (8)
      • 클라우드 (2)
      • 오픈스택 (6)
    • 프로그래밍 (86)
      • C/C++ (1)
      • 자료구조&알고리즘 (11)
      • 다음API (6)
      • OpenCV (2)
      • RabbitMQ (6)
      • Git&GitHub (3)
      • Web (2)
      • 자바스크립트 (12)
      • Spring (7)
      • Java (36)
    • Ruby&Rails (21)
      • Rails (16)
      • Gem (5)
    • OS (20)
      • 리눅스&우분투 (12)
      • CentOS (5)
      • 안드로이드 (3)
    • 해킹&보안 (5)
      • 무선해킹 (2)
      • 시스템해킹 (3)
  • 방명록

Ruby&Rails (21)
[Rails] 파일/이미지 업로드 paperclip

Rails 4 에서 Paperclip 과 Image Magick 으로 파일 업로드 및 이미지 처리를 할 수 있습니다. Paperclip 을 이용한 프로필 사진 기능을 만들어보도록 하겠습니다. Requirements1. Ruby 버전 1.9.2 이상2. Rails 버전 3.0 이상3. ImageMagick 설치 1. ImageMagick 설치$ sudo apt-get install imagemagick$ sudo apt-get instal libmagickwand-dev 2. Paperclip gem 설치Gemfile 에 추가gem "paperclip", "~> 4.1"$ bundle install 3. User 모델에 컬럼추가$ rails g paperclip user avatar$ rake db:mig..

Ruby&Rails/Rails 2014. 8. 18. 11:20
[Rails] Active record - rake db 종류

Rails 3.2.12 버전 db:create creates the database for the current envdb:create:all creates the databases for all envsdb:drop drops the database for the current envdb:drop:all drops the databases for all envsdb:migrate runs migrations for the current env that have not run yetdb:migrate:up runs one specific migrationdb:migrate:down rolls back one specific migrationdb:migrate:status shows current migr..

Ruby&Rails/Rails 2014. 8. 16. 21:47
Ubuntu 에서 Ruby & Rails 설치하기

Ubuntu 에서 Ruby & Rails 설치하기 1. RVM 설치$ curl -sSL https://get.rvm.io | bash -s stable 2. RVM 실행$ rvm get stable 3. Ruby 설치에 필요한 패키지들 설치$ rvm requirements ("Command not found" 에러시)$ source ~/.rvm/scripts/rvm 4. 패키지 management 설치$ apt-get install libyaml-dev 5. RVM의 OpenSSL 환경변수 등록$ rvm install 2.0.0 --with-openssl-dir=$HOME/.rvm/usr 6. Rails 애플리케이션을 실행하기 위한 필요한 Gemset 설정rvm use 2.0.0@railstutorial..

Ruby&Rails/Rails 2014. 7. 10. 02:36
[Rails] 이메일 전송

[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 작성 ..

Ruby&Rails/Gem 2014. 7. 8. 01:44
[Rails] 이미지 업로드

#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 ..

Ruby&Rails/Gem 2014. 7. 8. 00:02
이전 1 2 3 다음
이전 다음
최근에 올라온 글
  • [책 리뷰] 자바 최적화 (Optimizing J⋯
  • Spring Webflux + JDBC(혹은 bl⋯
  • [macOS Mojave] Evernote (혹은⋯
  • spring-boot-starter-webflux⋯
TAG
  • 자료구조
  • Message Queue
  • gem
  • install
  • 프로그래밍
  • javascript
  • rabbitmq
  • 컴퓨터
  • 다음지도
  • ruby
  • 클라우드 컴퓨팅
  • ruby on rails
  • IT
  • html
  • CSS
  • 웹프로그래밍
  • OpenStack
  • 티스토리 초대장
  • 다음
  • 리눅스
  • 알고리즘
  • 우분투
  • Java
  • ubuntu
  • IceHouse
  • 다음지도 API
  • 오픈스택
  • 이펙티브 자바
  • codecademy
  • Rails
more
글 보관함
  • 2019/06 (1)
  • 2018/12 (2)
  • 2018/11 (2)
  • 2018/10 (1)
  • 2018/07 (2)
Total
695,667
Today
68
Yesterday
235

Copyright ⓒ 2018 kkd927. All rights reserved.

티스토리툴바