Ruby on Rails in various pits on the window platform, the configuration process is quite painful.Expected installation content:MySQL serverRuby 2.0.0Rails 4.0.2MYSQL2 0.3.16installation files:MySQL official website: http://dev.mysql.com/downloads/windows/installer/Select the 64-bit installation file to download the installationrailsinstaller:http://www.railsinstaller.org/enThe official version is 1.9.3
the service is disabled.
RunG: instantrailsinstantrails.exeThe integrated environment will start up.
1.ClickInstantrails.exe
2. Green light Apache And MySQL Normal operation. Step 4 : In Instantrails There are already several preset functions in Ruby on Rails The following describes how to start and execute a developed program. 1. Execution options 2. Here we use Cookbook F
In the rubyforge projectEmacs-railsPackage: Ruby support for Emacs under the MISC directory in the ruby release.NxhtmL The use of Emacs addon provides strong support for ror project development.
Briefly describe the installation and configuration process:
1.Download the latest emacs-rails package from the rubyforge website.
2.Download the lisp package on which em
First, the introduction
Ruby on Rails is just a factor in making Ruby great, as EJB is just one part of the Java Enterprise platform. This article will bring you together as a Java developer, leveraging only the functionality that Ruby itself can achieve.
Let me first clarify some questions. First, this is not an art
Provide content for the iphone
Detecting Mobile Safari with Ruby on Rails application
The IPhone and ipod touch make mobile Safari a popular American mobile browser. Although it is more than enough to present a regular web page with Mobile Safari, many web developers have created an application version for the IPhone. The "Use Ruby on
Ruby on Rails website project construction simple guide, rubyrails
Create a Rails Project
To create a common Rails project, run the following command:
rails new blog
However, in China, because it is too slow to connect to RubyGems, Rails
It took nearly two years. After multiple test versions, Ruby On Rails 3.0 was officially released. Over 1600 developers participated in the development. With the joint efforts of everyone, Ruby On Rails 3.0 was "faster, stronger, and more beautiful". I believe the new version will not disappoint you.
The
Basic Rails Applications
Now let's start with a basic rails application. For a better presentation, I use Ruby 2.2.0 and Rails 4.1.1
Run at Terminal:
$ RVM Use 2.2.0
$ rails New CD Docker-test
To create a basic controller:
$
How to automatically deploy Ruby on Rails in Docker: dockerrails
Basic Rails Applications
Now let's start a basic Rails application. For better display, I use Ruby 2.2.0 and Rails 4.1.1.
Run on the terminal:
$ rvm use 2.2.0 $
configuration file, and add these lines:
LoadModule passenger_module/var/lib/gems/1.8/gems/passenger-2.2.4/ext/apache2/mod_passenger.soPassengerRoot/var/lib/gems/1.8/gems/passenger-2.2.4PassengerRuby/usr/bin/ruby1.8...Suppose you have a Ruby on Rails application in/somewhere. Add a virtual hostTo your Apache configuration file, and set its DocumentRoot/Somewhere/public, like this:
ServerName www.yourh
After unremitting efforts to finally put Ruby on Ralis development environment, in the WIN7 system, hurriedly to a most common example to practice practiced hand bar, feel the ruby ...Again, my ruby-v is ruby-2.0.0p247. Gem-v is: 2.0.3.
article is using the 0.5.6 version. IBM's DB2 database server is also required. This article uses DB2 EXPRESS-C version 9.5 to support Windows®, linux®, and UNIX® systems. Ruby on Rails is also required, and this article uses the Ruby 1.8.6 and Rails 1.2.5. The Mongrel WEB server used in conjunction with
Extract to a directory (for example: D:\server\Ruby200Install\ruby-kit)2 run cmd execute ruby dk.rb init and Ruby dk.rb install command in the Ruby-kit directoryVerify: Rails-v display version number in CMD indicates normal
4 Re
application that contains one project to learn how to add a project quickly.
Figure 1 shows the Radrails application. In fact, it shows the Rails "perspective" application, but don't worry about this little problem. You can think of it as a six-area window: Menu bar, toolbar, browser and test::unit pane, Editor pane, overview pane, and External tool pane.
Figure 1. Radrails applications
The menu bar menu bar is at the top level of the applicatio
Create Rails Project
To create a normal Rails project, you can use the following command directly:
Rails New Blog
But in the country because the speed of connection RubyGems is too slow, and Rails by default after building the project structure, will use the bundle command to download the installation de
Tutorial on efficient unit tests on Ruby on Rails, rubyrails
In the system developed by the author, a large amount of data needs to be analyzed, which not only requires accurate data analysis, but also requires a certain speed. Before writing the test code, I used several major methods to achieve this requirement. As you can imagine, the code is complex, difficult to maintain, and difficult to expand. Takin
and replace it.
When you're done, restart Apache, and when you're done, you should look like the following picture:
At this point, you can start running the instance.
3. Starting with the leftmost icon, the rails applications\manage rails applications running the menu will show the following interface:
Here we select typo-2.6.0, click the Start with Mongrel button, and wait until the prompt in the
Development machine: Win7 flagship-64-bit1, install ruby, download Rubyinstaller-2.0.0-p451.exe: http://rubyinstaller.org/downloads/1.1 Select the installation directory: (for example: D:\Ruby200)1.2 During installation: All options need to be checked (install plugin, execute RB extension file) Ruby-v Display version number indicates normalGem-v2, install Devk
-irb.i386Ruby-libs.i386Ruby-mysql.i386Ruby-rdoc.i386Ruby-rsvg.i386Ruby-shadow.i386Ruby-sqlite3.i386Rubygem-rake.noarchRubygems. noarch
The bold package is more important. Some packages cannot be directly used because dependency is automatically installed.
The packages installed in Ruby GEM are:
Actionmailer (2.1.1)Actionpack (2.1.1)Activerecord (2.1.1)Activeresource (2.1.1)Activesupport (2.1.1)Htmlentities (4.0.0)
dynamically generate a CRUD (create, read, update, delete) user interface to manage these objects.
This article is based on the current version of Activescaffold, Ruby, and Rails that is available (at the time of writing) (see Resources for links and version numbers). Also, this article assumes that you are very familiar with Ruby on
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.