Use Ruby on Rails to quickly develop web applications.
Ruby on Rails is impacting the entire Web development field. Let's first understand the underlying technologies:
Ruby is a free, simple, intuitive, scalable, portable, and interpreted scripting
Preface
Rails 3 has many new terms, such as railtie, engine, and application, which are closely related to the rails Startup Process and gem development, try to analyze the Startup Process of rails 3 and give yourself an explanation.
Enter:
Rails s
Ruby on Rails is a suddenly popular framework that acts as a catalyst for the ruby programming language. As Ruby experiences continue to succeed, developers began to seek to integrate their ruby applications with applications written in other
1. Ruby is a free, simple, intuitive, scalable, portable, and interpreted scripting language for fast and simple object-oriented programming. Similar to Perl, it supports many features for processing text files and executing system management tasks.
ArticleDirectory
Active Controller
Name routes map. xxx
Action Method
Controller environment object
Response Processing
Redirect
Cookies
Session
Flash
Filter
Verification
Active Controller
Model command
Before installing builder, we need to install Ruby and RubyGems (Standard Ruby Package manager) under the Rails framework. Download Ruby Windows Installer and double-click the Ruby185-21.exe file. After the Ruby Setup Wizard starts, click Next and
1. prerequesite assume that you have installed jruby and JDK 1.7 is preferred. 2. Install rails to install rails4.0.0:
C:\>jruby -S gem install rails -V
View the installed rails version:
C:\>jruby -S rails -vRails 4.0.0
3. Create a new rails apps
C:\
Mongrel is a ruby HTTP library used to deliver Ruby web applications. In fact, do not use Apache mongrel alone can run the ROR program, the online tutorial using Apache is used to do web proxy, so that the website will not have a http://www.unbe.cn:
Install RVM
You typically use RVM or rbenv to install Ruby, where you choose RVM.
$ Curl-ssl Https://get.rvm.io | Bash-s Stable
Load into RVM:
$ SOURCE/HOME/LIBUCHAO/.RVM/SCRIPTS/RVM
$ rvm-v
RVM 1.25.12 (Stable) by Wayne E.
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.