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
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
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
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
: Seemingly write test code is time-consuming, in fact, in testing, deployment and subsequent extensions, the test code will save more time.
Environment construction
The author adopts the test environment is more popular general framework: RSpec + Factory Girl, and autotest automatic tool. RSpec is a descriptive language, which is easy to understand by describing system behavior in a workable example. Factory Girl can help to construct test data, eliminating the trouble of writing fixture.
The recent use of cocoa Pods prompt version is too low need to upgrade to normal use.
However, there are also problems during the upgrade process.
First of all I was directly using the statement: sudo gem install cocoapods update upgrade, did not expect to complain again.
Then I wondered if it was because I didn't update the gem, so I updated the gem first.
Not
Basic Learning
Ruby--Basic Learning (i) Project folder description
Ruby-Basic Learning (ii) foreign key configuration for cascading deletions
Ruby-Basic Learning (c) Setting time in China timezone
Ruby--Basic Learning (iv) Timedate processing
Ruby-Basic Learning (v) The difference between empty, nil, blank three
Ruby--Basic Learning (vi) TIME calculation
Ruby--Basic Learning (vii) built-in functions and formatting instructions for time
Ruby-Basic Learning (ei
Environment
here's how to install Ruby:
1), install through Ruby source code
1>, download Ruby source from Ruby official website, https://www.ruby-lang.org/en/downloads/, unzip
2>, CD to unzip directory, execute
$./configure
3>, execution
$ make
4>, execution
$ make Install
5>, execution
$ buby-v
2) , upgrading Ruby through RVM (recommended)1>, installing RVM Rvm:ruby version manager, Ruby release manager, including Ruby version management and
First, go to the Github.io URL, go inside and build ruby and Gem in the tutorial. When you enter Ruby and Gem in cmd, the following occurs:
$ ruby
asus@desktop-5j15lt4 MINGW32 ~/desktop/mylog (gh-pages)
$ gem
RubyGems is a sophisticated package Manager for Ruby. This was a
basic help message containing pointers to more information.
Usage:
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
Here we will mainly sort out how to install Rails in Windows. Rails supports multiple operating systems, such as Windows and Linux. Here we will introduce several installation methods based on the Windows development environment.
1. You can download an all-in-one rails running environment with language support, editing environment, database, and server: Instant Rails. This installation method is very simple. You can directly run the tool without any configuration.
2. you can specify an address t
Cause:
I often need to check the status of some Windows Services. Every time I use the control panel> Service to view the Service status, it is not only a waste of time but also boring. Simply write a Ruby script. Let the Ruby script notify me of the status of a Windows Service and give me some prompts Based on the status.
Main content:
You can see the use of the following technologies/tools in this article daily works with ruby.
Use RubyGems to query and install the
Watir (based on Ruby) and watirruby
Web automation testing has always been an urgent issue.
Figure 1-1 tools to be installed
Http://railsinstaller.org/
Because installing Ruby also requires some other development toolsets, it is recommended to http://railsinstaller.org from the website/Download, and use the installation package, it will help you set the environment variables, I use the version is: railsinstaller-2.2.4.exe, it is recommended to download the latest version.
Start installing the
install curl$ sudo apt-get install Git-coreConfigure GitGit is used in RVM scripts, and we use it in the second part of this tutorial. After installation, we need to take a moment to configure it. Configuration is easy: Just provide a user name and email address.$ git config--global user.name "Your name" $ git config--global user.email [email protected]Such as:$ git config--global user.name "John Doe" $ git config--global user.email [email protected]Installing RVMNow we can install the RVM. RVM
The goal of mastering Redmine plugin development was not realized in 2016 years, and continued in 2017. Choose the Ruby on Rails Tutorial tutorial, Windows installs Railsinstaller, which is Ruby V2.1.8, and Bitnami redmine-3.3.0 version is the same. But the rails version is 4.2.5.1, and the redmine corresponds to the 4.2.6 inconsistency. Make a Gem pack update first:
Start the terminal. Note Use the Railsinstall installed after the terminal,
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.