델리마운트 위키

래드레일스 #

앱테나의 확장기능중에 레일스(Ruby on Rails)의 개발환경으로 래드레일스(Aptana RadRails)가 있습니다.

설치하기 #

래드레일스 플러그인 설치방법은 다음과 같습니다.
  1. 이클립스를 실행합니다.
  2. Help > Software Updates > Find and Install을 클릭합니다.
  3. Install - Feature Updates 창이 뜨면, Search for new features to install을 선택한 후 Next를 클릭합니다.
  4. Update Sites to visite페이지에서 New Remote Site를 클릭하면 New Update Site 창이 뜨고, NameRuby on Rails Development EnvironmentURLhttp://update.aptana.com/install/rails/3.2/을 입력한 후 OK를 클릭합니다.
  5. Finish를 클릭합니다.
  6. Updates - Search Results 창이 뜨면, Ruby on Rails Development Environment 항목에 체크한 후 Next를 클릭합니다.
  7. Feature lincense 페이지에서 라이센스 동의 항목을 클릭한 후 Next를 선택합니다.
  8. Installation 페이지에서 Finish를 클릭합니다.
  9. Update Manager 창이 뜨고, 파일 다운로드가 진행됩니다. 다운로드가 완료되길 기다립니다.
  10. 다운로드가 완료되면, Verification 창이 뜹니다. Install All을 클릭합니다.
  11. 설치가 완료되면, 이클립스를 재시작해야 한다는 경고가 뜹니다. Yes를 눌러서 재시작 해줍니다.

설치 할 것 들 #

  • 앱테나와 래드레일스 모두 설치해야.
  • 루비 인터프리터도 설치해야.
  • 레일스도 설치해야 - 루비젬스(RubyGems)를 통해
  • mongrel 서버 설치 - gem install mongrel --include-dependencies > 버전 선택

간단 요약 #

  • Debug Dialog > Ruby Application > new
File Project: your_project File: script\server Arguments Interpreter Arguments: -I"C:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.4" // 버전과 설치경로에 따라 다름

래드레일스 상에서 설정 #

  • Window > Preferences에서 Ruby > Installed Interpreters에 루비 인터프리터를 지정한다.
  • Window > Preferences에서 Ruby > Smart caret positioning at line start and end를 체크하면, 스마트 HOME/END 가 적용된다.

PostgreSQL 데이터베이스 연결하기 #


  • PostgreSQL 설치
  • gem install postgres, gem install postgres-pr
  • http://ruby.scripting.ca/postgres/ 에서 ruby-postgres-0.7.1.2005.12.21-mswin32.gem 파일을 받아 로컬에서 gem으로 설치
  • config/database.ymlusername, password 설정하기
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2009-09-04 15:45:01
Processing time 0.0538 sec