Today, the system is reinstalled and the running environment of rails is re-built. Therefore, the following commands are based on the latest situation. Install Ruby one-click Installer
Note: Try not to install those new versions. Ruby and rails are not very friendly to Windows. Generally, the mswin32 versions of these class libraries are the latest. Trade rashly acts as a mouse, So you suffer. The version I installed is 1.8.6-25.
Then, add c: \ Ruby \ bin to the system variables to install Ru
will help you configure git and SSH, the installation process of a series of environment variables such as Ruby also configured OK, very good ~ Figure 1-4 Testing Ruby Installation after installing the Railsinstaller-2.2.4.exe, open the cmd command line and enter the command: RUBY–V, if, in the case of Ruby, shown in Figure 1-4, Ruby is already installed, we can also enter a command to test the version of the gem:
the variable. Using this type requires only normal invocation and does not need to be judged like an optional type.circular references between class instances1. Instance a can optionally contain a reference to instance B, and instance B optionally contains a reference to instance a-resolved with a weak reference Example:The following two categories, apartments do not necessarily have tenants, tenants are not necessarily in the apartmentNegative: Two are strong references cause a circular refere
First of all, the history of our website. In the winter of 02, Taipei Street, I stopped pedestrians in the cold Wind questionnaire questionnaire, girls feel like a "home" site will be more attractive. Soon, the pink "Love Apartment" was born, with a target audience of 18-28-year-old women. 05, the "Love Apartment" moved from Taiwan to Shanghai: "Now to see how the love
Thread mode in COM Component
1.
SubmitAnd the thread mode of COM actually refer to two aspects: one is the thread mode of the customer program, and the other is the thread mode supported by the component. There are only two thread modes for the client program, single-threaded apartment (STA)And multi-threaded apartment (MTA ). The component supports four thread modes: single (single thread),
execute setup. Rb in the directory. After the installation is complete, run the following command to check:
Gem-V
3. Install rails
A) Remote Installation: Gem install rails-remote
The following is a description from the Internet that I didn't use this method for installation, because my network speed is too slow.
Then the output is automatically:Install required dependency activerecord?Install requi
Many documents describe how to use the gem (one-click Ruby installer is already included, and you can use the gem after installation) for Remote Installation. If the network is poor, the installation will fail. I can see an article on the Internet that describes the local installation method. Now I will summarize the installation process for you.
First download them from rubyforge.net (the version may be u
me to Tian Ming; if I give her a red rose, I will be able to hold her waist, sheI will also put my head on my shoulder, her hand will be in my hand. But there is no red rose in my garden.Sitting there alone, watching her pass. She won't notice me, and my heart will be broken .""This is indeed a real lover," said the Nightingale. "What I sing for is what he suffers and what I do.Happy things are painful to him. Love is really a wonderful thing, it is more precious than the green
ivjelin ...... Good faith and good faith
Eve eve ...... Life gives life to the mother of life
Evelyn ...... Happy people
Faithe Feizi ...... Loyal and trusted people
Fanny ...... Free man
Fay Fei Yi ...... Loyal or loyal little fairy
Flora ...... The God of flowers
Florence freelence ...... Blooming beautiful
Frances Francis ...... Unrestricted person
Freda flida ...... Peace leaders
Frederica fredelica ...... Peaceful leaders
Gabriel gabiela ...... God is power
Gail ....
The thread mode of COM actually refers to two aspects: one is the thread mode of the client program, and the other is the thread mode supported by the component. There are only two thread modes for the client program.(STA) and multi-threaded apartment (MTA ). The component supports four thread modes: single (single thread), apartment (STA), free (MTA ),Both (STA + MTA ).
1.
Cocoapos Execute the Install times error as follows
Generating Pods Project Abort Trap:6
You need to execute the following command
sudo gem uninstall cocoapodssudo gem uninstall Cocoapods-coresudo gem uninstall cocoapods-deintegratesudo gem uninstall Cocoapods-downloadersudo gem
Http://www.cnzzad.com/tut/69566.html
Recommended:Start Network-Professional hosting and server sharing provider 17hz.net-5-year server shared rental boutique Service
From: http://developer.51cto.com/art/200908/147276.htm
It is difficult to install Ruby on Rails, but it is also very convenient. Development of applications based on RubyProgramYou must install Ruby, Gem, rails, and mongrel.
How to install Ruby on Rails
First, downl
time the installation of the E:\Program Files\bla bla ... In such a directory, the following installation of rails will appear similarto the "'E:program is not an internal or external command such errors, and later found that there may be folders in the directory there are spaces can not identify." Finally installed directly in the root directory is good ~
Enter Ruby-v at the end of the command line to test:
hoho~~ Installation S
and modification are unsuccessful;
Half-time: It seems that writing test code is time-consuming. In actual testing, deployment, and subsequent expansion, the test code will save more time.
Environment Construction
The test environment used by the author is a popular and common framework: RSpec + Factory Girl, and autotest automatic tools. RSpec is a descriptive language. It is very easy to get started and easy to understand through feasible examples. Factory Girl can help construct test data
Bundle Introduction:
The bundle is introduced in Rails 3 to manage all gem dependencies in the project, which can only be executed in a directory containing gemfile, such as the root of a rails 3 project.
About Gemfile and Gemfile.lock
The trust packs for all Ruby projects are configured in Gemfile and are no longer found by require as they were before. In Rails 3, if you need to require a gem package, you
iOS Development 61-cocoapods installation and use
What is CocoapodsCocoapods is a third Class library management tool under OS X and iOS, and through the Cocoapods tool we can add a dependency library called "Pods" to the project, which must be supported by Cocoapods itself, and can easily manage its version.the meaning of cocoapods is embodied in two aspects.
First, it can automatically complete a variety of configurations for us when introducing a Third-party library, including configuri
Web Automation testing has always been a more pressing problem.Figure 1-1 Tools required for installationhttp://railsinstaller.org/because installing Ruby also requires a few other development tools, it is recommended to download it from the website http://railsinstaller.org/, and it will help you set the environment variables as well, using the installation package. The version I am using is: Railsinstaller-2.2.4.exe, it is recommended to download the latest version.Start installing the Railsin
Run the installation package and unzip it to a folder, such as C:\DevKit
The Config.yml file is created by initialization. In the Command Line window, enter the following command:
CD "C:\DevKit"Ruby DK.RB InitNotepad config.yml
In the Notepad window that opens, add a new line at the end - C:\Ruby200-x64 , save the file, and exit.
Back in the Command Line window, review (not required) and install.
Ruby DK.RB ReviewRuby Dk.rb Install
and modify the PATH environment variable. This method takes effect only after the system is restarted.
It can be set:
PATH =. :/bin:/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/ruby/bin: /usr/local/mysql/bin
4. install some libraries required for redmine running with gem
Gem install rails
{Optional
Gem update -- system
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.