Configuration Rails3 development environment under Windows

2010-09-16  来源:本站原创  分类:Ruby  人气:143 

Development environment under Windows configuration Rails3

Many students like the Mac website under development with Rails. Unfortunately, I did not condition a few years ago on black. Would also like to play Rails3, then try the next configuration in Windows7 Rails3 development environment. Can not think of pretty simple. The following is the process of recording your own configuration.

An installation Ruby1.9.2
To Rubyforge, download windows version of the installation file. Step by step installation process, select the path when there is attention to detail: By default, ruby ruby will not attach to the windows path, you need to check on the Add Ruby executables to your PATH and Associate. Rb and. Rbw file with this Ruby instakkation, then the next step until the installation is complete.

After installation, added to the windows to see if the path of success: the
Open the doc window (Start - Run (or search for programs and files) - type cmd enter):
ruby-v Enter

The following results come out, you're done, and write windows paths in the PATH:
C: \ Users \ Administrator> ruby-v Enter
ruby 1.9.2p0 (2010-08-18) [i386-mingw32]

By default, the gem is also installed, the version is 1.3.7 see:
C: \ Users \ Administrator> gem-v Enter

2 Installation Rails3
We are a network to install Rails3, it is prerequisite to access to the Internet. Open Doc window, type:
gem install rails - version 3.0.0 Enter

This, windows according to your network, find the source, self-installed. Time spent under the speed of your network, patience and so it wants to.

After installation is complete so dos prompt, type
rails-v Enter the rails to see the corresponding version of the:
C: \ Users \ Administrator> rails-v
Rails 3.0.0

It is very simple.

3 installation database:
Since it is a development environment, I use Sqlite3 as the development database; in dos type:
gem install sqlite3-ruby Enter the gem package sqlite3 installed, there are further needs to be done, otherwise sqlite can not use the rails.
To slqite3 official website, download a sqlite3.dll file (also can be downloaded here), into C: \ Windows \ System32 path, (this path is the path of your windows installation decision, my system is installed in C drive next. or the bin directory under the ruby installation, for example: C: \ Ruby192 \ bin)

If you like mysql, then you can install it:
gem install mysql Enter

Database installation is complete.

Four off the work:
If you have previously installed other versions of rails, to conduct mop-up work, dos, type:
Enter gem cleanup
gem update-y Enter

Five test development environment for the sake of convenience, dos down to the root directory C drive new test items:
c: Return
Enter rails new blog
cd blog Enter
rails generate scaffold Post name: string title: string content: text Enter
rake db: migrate Enter
rails s Return

Then type in the browser: can see the new blog you just had.

The rest is the latest example of official documentation of a blog to study Rails3 it ....( end)

Through the configuration in windows 7, windows xp not done under test.


  • Configuration Rails3 development environment under Windows 2010-09-16

    Development environment under Windows configuration Rails3 Many students like the Mac website under development with Rails. Unfortunately, I did not condition a few years ago on black. Would also like to play Rails3, then try the next configuration i

  • Development environment under Windows configuration Rails3 2010-09-16

    Development environment under Windows configuration Rails3 Many students like the Mac website under development with Rails. Unfortunately, I did not condition a few years ago on black. Would also like to play Rails3, then try the next configuration i

  • wxPython development environment under windows installation and configuration 2010-03-19

    To prepare the installation files: Python and wxPython Runtime Environment installed Installing python-2.6.2.msi, wxPython2.8-win32-unicode- wxPython2.8-win32-docs-demos- and py2exe-0.6.9.win32-py2.6.exe python installati

  • Based on the structures in the snow Leopard ree + nginx + passenger's rails3 development environment 2010-11-09

    Here, writing about a pure version of the operating system, development environment to build rails3 all the steps. Note. First, general tools, you can skip without looking. 1, the installation textmate, help menu, the following enhanced terminal usag

  • How to build Android development environment under Windows (to) 2010-10-11

    Development environment to build Android Download the Android SDK 1 This is the official website, go into the process followed to select for your platform (in this case W

  • Php development environment under Windows XP build 2010-12-16

    1 Release Notes Apache version: apache 2.2.4 Php version: php 5.2.3 Mysql version: mysql 5.1.19 Apache, Php5 and store the best Php file documents in the same directory level 2 apache download and installation 2.1 Download the following link to downl

  • Eclipse + EclipseME + WTK build \ configuration J2ME development environment 2010-07-15

    Installed software 1 JDK (jdk1.6.0_02) 2 WTK (2.5.2) 3 Eclipse (3.3.2) 4 EclipseME (1.7.9) Installation process: 1 install jdk1.6.0_02 2 installed WTK (2.5.2): the sun web site https: / / / is-bin / INTERSHOP.enfinity / WFS / CDS-CDS_Deve

  • 1. Configuration jbpm4 Development Environment 2010-07-23

    jbpm4 is a lightweight workflow engine, the following configuration what we have to configure jbpm4 eclipse development environment. 1, we must first download the eclipse, need EE version (Eclipse IDE for Java EE Developers), download link in the htt

  • Building Erlang development environment in Windows, 2011-01-09

    1, download Windows operating environment otp_win32_R14B01.exe under Erlang 2, set the path to the implementation of erl file path into the Path 3, adding the library path setting Erlang in classpath, the code is placed: code: add_patha ("c: / / ma /

  • Configuration android development environment 2010-03-29

    Heard about google's android programmers salary is high ah. Today, interest in try. Then install the development environment. Still using MyEclispe6.5. To install android development of plug-ins. So, after I finished writing directly to Chinese. 1. H

  • Configuring Django development environment under Windows 2010-04-27

    Install Python: Python is Django's host language, using the Django framework, you must first install the Python language to Windows, Official website is: If you can not go may be screened in mainland China, you can search for download. Thi

  • Build Java Web development environment under Windows 2010-04-02

    Summary 1. SSH development of related software and development kit download 2. Software installation and related settings 3. Simple Web program 1. Software Downloads in D drive to build a directory JavaTools, used to store the downloaded software and

  • ROR VIM development environment for Windows, built 2010-11-29

    1.Ruby, RubyGems, Rails ROR is the reference version of "Agile Web Development with Rails 3rd" [1] Ruby 1.8.7, download Ruby , EXE to install on the line [2] RubyGems 1.3.7, the latest version now, download the ZIP , extract, ruby setup.rb [3] R

  • imatrix Day 2 configuration rails3 development gem 2010-08-13

    Start configuration items first, to view the template to haml, test module to rspec, using the factory-girl fixture Edit Gemfilesource '' gem 'rails', '3.0.0.rc' gem 'mysql' gem 'haml' #devise Use Haml requires the following gem ge

  • Under the rvm on Ubuntu 10.04 and rails3 development environment set up ruby1.9.2 2010-08-31

    See the next installation of ubuntu on rvm articles, based on Ubuntu Server 10.04 use rvm ruby version management 1, update rvm rvm update --head && rvm reload 2, install full version of ruby 1.9.2 rvm install 1.9.2 3, the establishment of gemset,

  • Mobile Development How to build Android development environment under Windows 2010-08-11

  • Learning Notes Series ROR a Windows XP installation configuration of the environment (2) 2009-07-09

    Recently concluded a project , Idle boredom , So prepare yourself to learn about ROR charge your energy , ROR in JavaEye see above for a long time , But the comparison has been busy as a Java project , So no more attention to , Robbin is inadvertentl

  • Android development environment to build Record 2010-03-29

    Android development environment to build is actually very simple, need time to pay attention in the development of some of the details. In this paper, a running account, in the form of record of the author Installation and Configuration Android devel

  • Android development environment for building Record 2010-03-08

    Construction of Android development environment is simple, requires some attention to detail in the development time. This article records the author in the form of a running account configuration Android development environment installed encountered

  • AIX development environment introduced 2010-11-04

    AIX development environment introduced With the IBM pSeries server market share continues to increase, AIX operating system for the IT industry more and more loved. AIX UNIX family as a good one, has a rich development environment, AIX latest version