日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

java ror框架搭建_ROR 环境的 搭建

發布時間:2025/4/5 编程问答 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 java ror框架搭建_ROR 环境的 搭建 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1)安裝RUBY:

從 http://www.ruby-lang.org/en/ 下載 ruby182-15.exe,安裝Ruby。

ruby -v 看是否安裝成功。

2)安裝RAILS框架 :

gem install rails --remotes

rails -v 看版本號號,看是否安裝成功。

3)安裝 J2SDK 和Eclipse:

我安裝了語言文件,用eclipse.exe -nl zh 實現中文化。

環境變量:  PATH:C:/j2sdk1.4.2_02/bin;

加入CLASSPATH : C:/j2sdk1.4.2_02/lib/dt.jar;C:/j2sdk1.4.2_02/lib/tool.jar

java -version javac 看是否安裝成功。

4)安裝RDT(Ruby Development Tools):

help ->software updates->find an install ->search for new features to install

NEW remote site -> 填寫RDT -> http://updatesite.rubypeople.org/nightly(最新版) OR http://updatesite.rubypeople.org/integration(穩定版本號)

不要改動安裝文件夾,我出現了不能載入的錯誤的提示。

開始安裝,完畢后又一次啟動Eclipse。

5)配置RDT

windows->Preference->Ruby->Installed Interpreters

加入RUBY語言編譯器 :RUBY c:/ruby/bin/ruby.exe

其它是可選項。

6)啟動RUBY視圖:

windows ->open perspective ->other --->ruby

7) 數據庫操作實現:

下載DBEDIT插件,http://prdownloads.sourceforge.net/dbedit/dbedit_1.0.3.bin.dist_3.X.zip?use_mirror=nchc

解壓縮到eclipse安裝文件夾

注意把eclipse32/configuration/org.eclipse.core.runtime刪掉,更新插件。

下載 MYSQL的 JDBC http://dev.mysql.com/downloads/connector/j/3.1.html

解壓到C:/java/drivers

windows->show View ->other ->dbedit ->tables 右鍵 new Connection

CLASSPATH : C:/java/drivers/mysql-connector-java-3.1.14

8) ROR環境配置:

run->external tool ->external tool

program ->new

名稱:新建ROR工程

改動 Main 選項卡: location : c:/ruby/bin/rails.cmd; working directory : ${project_loc} ;arguments :../${project_neme} (在變量中自己選取)

改動refresh選項卡 :選中全部;

改動COMMON選項卡: external tools 選中。

實現ROR Model層:

名稱:新建Model

改動 Main 選項卡:location : c:/ruby/bin/ruby.exe; working directory : ${project_loc} ;arguments :script/generate model ${string_prompt:Model name} -f (在變量中自己選取)

實現ROR CONTROLLER層:

名稱:新建Controller

改動 Main 選項卡:location : c:/ruby/bin/ruby.exe; working directory : ${project_loc} ;arguments :script/generate controller ${string_prompt:controller name} -f (在變量中自己選取)

實現ROR 支架系統:

名稱:新建Scaffold

改動 Main 選項卡:location : c:/ruby/bin/ruby.exe; working directory : ${project_loc} ;

arguments :script/generate scaffold ${string_prompt:Model name} ${string_prompt:controller name}${string_prompt:actions separated with spaces} -f (在變量中自己選取)

實現ROR VIEW層:

安裝WTP插件:

WTP:download.eclipse.org/webtools/updates/

原文:http://www.cnblogs.com/mengfanrong/p/3848586.html

總結

以上是生活随笔為你收集整理的java ror框架搭建_ROR 环境的 搭建的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。