1) install Ruby:
Download the http://www.ruby-lang.org/en/ from the ruby182-15.exe and install Ruby.
Ruby-V to check whether the installation is successful.
2) install the rails framework:
Gem install rails -- remotes
For rails-V, check the version number and whether the installation is successful.
3) install j2sdk and Eclipse:
I installed the language file and used eclipse.exe-nl ZH to implement the Chinese culture.
Environment variable: Path: C:/j2sdk1.4.2 _ 02/bin;
Add classpath: C:/j2sdk1.4.2 _ 02/lib/dt. jar; C:/j2sdk1.4.2 _ 02/lib/tool. Jar
Java-version javac to check whether the installation is successful.
4) install RDT (Ruby development tools ):
Help-> Software Updates-> Find an install-> search for new features to install
New remote site-> enter RDT-> http://updatesite.rubypeople.org/nightly (Latest Version) or http://updatesite.rubypeople.org/integration (stable version)
Do not change the installation folder. I am prompted that the folder cannot be loaded.
Start the installation and start eclipse again.
5) Configure RDT
Windows> preference> Ruby> installed interpreters
Add Ruby language compiler: Ruby C:/Ruby/bin/ruby.exe
Others are optional.
6) Start the ruby View:
Windows-> open perspective-> other ---> Ruby
7) database operation implementation:
Download dbedit plug-in, http://prdownloads.sourceforge.net/dbedit/dbedit_1.0.3.bin.dist_3.X.zip? Use_mirror = nchc
Decompress the package to the eclipse installation folder.
Delete eclipse32/configuration/org. Eclipse. Core. runtime and update the plug-in.
Download MySQL JDBC http://dev.mysql.com/downloads/connector/j/3.1.html
Decompress the package to C:/Java/drivers.
Windows-> show view-> Other-> dbedit-> tables right-click New Connection
Classpath: C:/Java/Drivers/mysql-connector-java-3.1.14
8) ror environment Configuration:
Run-> external tool
Program-> New
Name: Create ror Project
Modify the main tab: Location: C:/Ruby/bin/rails. CMD; working directory :$ {project_loc}; arguments :.. /$ {project_neme} (select your own variable)
Modify refresh tab: Select All;
Change common tab: select external tools.
Implement the ror Model layer:
Name: create a model
Modify the main tab: Location: C:/Ruby/bin/ruby.exe; working directory :$ {project_loc}; arguments: script/generate model $ {string_prompt: model name}-F (in the variable)
Implement the ROR controller layer:
Name: Create a controller
Modify the main tab: Location: C:/Ruby/bin/ruby.exe; working directory :$ {project_loc}; arguments: script/generate controller $ {string_prompt: controller name}-F (select your own variable)
Implement the ROR Bracket System:
Name: New Scaffold
Modify the main tab: 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 (select from the variable)
Implement the ROR view layer:
Install the WTP plug-in:
WTP: download.eclipse.org/webtools/updates/
Setup of ROR Environment