Install and use bundler in Ruby to manage multiple versions of gem and rubybundler
With rbenv to manage a multi-version ruby environment, we also need a tool that can manage multiple versions of gem (such as rails), that is, bundler. The project background is not detailed, for more information, visit http://bundler.io/on the official website.
Download the integration pack: http://railsinstaller.org/en the rest of the little things other tutorials can also be found, here is not much to say.
After installation, open the Rbreadline.rb file under ruby2.1.0\lib\ruby\site_ruby\2.1.0 in the installation directory, which can be opened using Notepad. Then change require ' DL ' to require ' findle '
Open the command line and execute the following command
$ gem Sources--remove https://rubygem
Download and install sass and compass in ruby, and reference css styles.
It is very convenient to use scss to write css. The first is ruby download and installation, is the http://rubyinstaller.org/downloads. After the download, open the installation file and click Next to install it. Note that
Check the following
Ruby on Rails can be installed in two ways.
1. Direct Installation
We can download Ruby on Rails from the official website.:Http://rubyonrails.org/
After the download is complete, you can directly install it. It cannot be installed in a path with Chinese characters or it will not run properly.
Ii. You can use instant rails to integrate the installation envi
In my previous blog post, I documented how Ruby operates the environment configuration of the MongoDB database in a Windows environment. The last step describes the driver package for installing MongoDB. Using the Gem Online installation method. The purpose of this article is to use GEMS for offline installation of GEM kits when the target machine or environment cannot connect to the Internet.1. in the https://rubygems.org/, according to the correspon
I tried to install Ruby through rbenv, but it failed, as shown in the title.
A similar error was reported on the Ruby-build, and the author also gave a description of the environmental requirements on the wiki. But there was no mention of the OpenSUSE system.
According to their ideas, I looked up the corresponding OpenSSL package under OpenSUSE:
$ zypper se Op
Document reprinted by Fire Site Building InstituteTo install the oracle driver using gem in ruby on rails, see the original article:
Reference content is as follows:[1] viewing locally installed plug-insGem list orGem list -- local[2] viewing remote available plug-insGem list -- romote[3] viewing oracle driversGem list -- remote | grep oracleThe result is as follows:Activerecord-oracle_enhanced
Update:An updated version of these instructions for Ubuntu 12.10 (quantal Quetzal) is available here.
1. Install the prerequisites
sudo apt-get install openjdk-7-jdk libjpeg62 libwebkitgtk-1.0-0 git-core
Although Aptana Studio doesn't officially support openjdk, I 've not encountered any problems, however I 've not done extensive testing. Alternatively, to use the Sun JDK, do the following:
sudo apt-get
With RBENV to manage multiple versions of the Ruby environment, we also need a tool to manage multiple versions of gems (such as rails), which is bundler, the project background is not in detail, need to understand directly to the official website http://bundler.io/, There are only a few practical experiences to use here.
Installation
Gem Install Bundler
Use
mkdir App1; CD App1;
echo
System Environment: Windows 7 SP1
Ruby version: 1.9.2-P0
Devkit version: 4.5?
When you install eventmachine in this environment, errors are always reported.
Building native extensions. This cocould take a while...Error: Error installing eventmachine:Error: failed to build gem native extension.
This prompt keeps going, and there is still one more difficult error, which is the c compilation error.
1. Input: Yum install Ruby1.1 Error downloading Packages If installation file is wrong:Input: Yum Clean allinput:yum Makecache, at this point if error cannot find a valid BaseURL for repo:base/7/x86_64,Open Vi/etc/sysconfig/network-scripts/ifcfg-enp4s0 (each machine may be different, but the format will be "Ifcfg-e ..."). But the content contains:Restart Network input: Service network restartAnd then type: Yum Makecache2. In the input: Yum
1. If Git is not installed, go to http://code.google.com/p/git-osx-installer/to download and install it. 2. Install RVM and run the following command to install it: Shell code.Bash
away from the original language syntax. Ruby on Rails is a framework for creating database-based Web applications. This shows Ruby's strength. Rake, a ruby version that combines make and ant, is another proof of powerful application of this language.
Another reason for using Ruby is that all programming enthusiasts are using it. Currently, many Java experts (suc
to the reference section and find the download link. Note that this example uses pure Ruby, which does not depend on any command line utility currently provided on the computer.
Install rubyzip
Download the "rubyzip" gem through the provided link and copy it to the system. (At the time of writing this article, its file name is "rubyzip-0.9.1.gem ").Run the gem installation rubyzip-0.9.1.gem
Listing 3. Usin
Ruby on Rails Session 1: How to Build a Ruby on Rails on the Ubuntu., railsubuntuAbout Ruby on Rails
Ruby on Rails is an application stack that provides developers with a framework to quickly create a variety of web applications. ruby on Rails does take a little while to
.
Listing 1 is an example.Listing 1. Processing Ruby strings: defining strings
message = 'Heal the World…'puts messagemessage1 = "Take home Rs #{100*3/2} "puts message1Output :# ./string1.rb# Heal the World…# Take home Rs 150
Here, the first string is defined by a pair of single quotes, and the second string is defined by a pair of double quotes. In the second string, the expression in # {} is calculated before display.
Another useful string definitio
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.