Read about ruby on rails web development tutorial, The latest news, videos, and discussion topics about ruby on rails web development tutorial from alibabacloud.com
Ror may be the biggest difficulty for beginners, that is, the installation and setup of the development environment. Today, it has been around for a long time, and the process has been posted here, so that beginners can avoid detours.
1. Install Ruby 1.8.6
Open http://rubyforge.org/frs? Group_id = 167, install the final version of ruby1.8.6-26
After the download is complete, enter the
Ruby on Rails is a ruby-based Web development framework that follows the MVC pattern. Using ROR will give you a faster and more rapid web development experience. Compared to Java EE, th
Construction of development environment under Windows system
1. Remote Installation
Step 1: Download and install the Ruby one-click installation package
Download the latest Ruby 1.8.4-16 one-click installation package with a download address of :
http://rubyforge.org/projects/rubyinstaller/
Run the installation file after downloading, and click th
presentation layer is rendered by the browser
The logical layer manipulates the data from the server side and goes to the presentation layer
The data layer is responsible for storing the data.
6-tier architectureIf you divide it further, you get a 6-tier architecture, such as
The presentation layer is divided into the client layer and the presentation logic layer
The client layer is responsible for rendering the display page
Indicates that the logical layer generat
The presentation layer is rendered by the browser
The logical layer manipulates the data from the server side and goes to the presentation layer
The data layer is responsible for storing the data.
6-tier architectureAssuming a further cut, you get a 6-tier architecture, such as
The presentation layer is divided into the client layer and the presentation logic layer
The client layer is responsible for rendering the display page
Indicates that the logical layer g
5. Below we want to use gem, before using, first switch to Taobao server gem more use, see://View the current Gem source list, the default source is
https://rubygems.org/
6. Installing Rails with Gems
Gem Install rails///////////////////////////
and start installing Ruby on Rails.
In the practice of agile development, the test drive is indispensable. This article looks at a test-driven development example in rails.
Before we wrote and conducted some unit tests and functional tests, our customers suddenly asked to add a feature: Each user of the system could query the product.
We first sketched some sketches to sort out our ideas and desi
Use Instantrails to quickly build ruby on rails development environment
There's been a lot of interest in Ruby on Rails to see what's been praised by many people, but the development that has been done under Windows is a headache
Description: User resources include user data models and Web pages related to this model.1. The user data model is as follows:2. Using rails built-in scaffolding to generate user resources, execute the following command:$ rails Generate scaffold User name:string email:string #创建模型$ rails Destroy Scaffold User #销毁模型$ bu
1, Purpose: Use Heroku to deploy the development environment to the production environment. Heroku is dedicated to deploying rails and other Web applications, and the process of deploying rails applications is straightforward-as long as the source code is incorporated into the GIT version control system.2. Build Heroku
Build a ruby on rails Development Environment on win7, win7rails
For beginners who are new to a new technology or language, building a learning environment is always a tough topic, especially in the domestic network.
After more than 10 hours of hard work, I finally built a ruby + r
I went to bed 5:30 last night, frantically configuring the vim environment and finally finished the fantastic Ruby on Rails development tool. I have installed the Vim-ruby in this vim environment, of course this should you to install, in Ubuntu below a simple command:
sudo apt-get install Vim-
Tags: railsThere are 11 chapters in total, a simple Weibo system.The development is driven by testing, so there are a lot of test code in the book. At the beginning, I felt very uncomfortable. After a while, I still don't like this development method. Finally, I chose to organize the knowledge points in the book in my own way. That is to say, I separate the development
Images can be said to be a critical part of any application. From social networks to a simple bug tracker, images play an important role. Managing images, however, is not an easy task and requires a lot of time and energy to plan ahead.
This article demonstrates how to achieve this goal in rail. How do you handle your images and create multiple versions in the background? How to improve the performance of the page by compressing the image without compromising the image quality? These are the on
For newcomers to a new technology and language, building a learning environment is always a difficult topic, especially in the domestic network, the difficulty is greatly increased.After about more than 10 hours of hard fighting, I finally build a successful ruby+rails+mysql environment in Win7, this article does not have detailed steps, tossing the time did not leisurely blog, at the same time do not want
Recently wanted to get an Android app that has access to the Internet, because it's fast so it uses Ruby on Rails to provide HTTP resources. This information is still relatively small, so the attempt to record the process.1 building Web application with Ruby on Rails1.1 New Web
In this article, I read "Creating a Ruby on Rails Development Environment on Mac OS X" and sorted it out following his steps. The content is basically the same, and some images are added. If you want to see the original content, please refer to the blog of the repair team here.
To install Ruby on
This article is where I read Hugh wrote "Build Ruby on Rails development environment on Mac OS X", followed his steps and sorted it out. The content is basically consistent, adding some graphs. If you want to see the original content, look at the Hugh blog here.
To install Ruby on
This is the second part, the main is the MySQL database distributed design. When I set up the environment, I basically did not separate the database. For the time being, prepare for it.
Database design of master-slave structure
The www.eol.org project itself has the database design of master-slave database and read-write separate.
(Master/slave) and the rails core database are separated from the application core database. Mainly depends on the foll
1. Goal: Mastering MVC and Rest, generators, migrations, routes, embedded RubyThis book deals with the Rails,ruby language, the test framework (minitest) that rails uses by default, the Unix command line, HTML,CSS, a small amount of javascript, and a bit of SQL.2. Demo Application:Hello_app (v. 1.3)Toy_app (2nd Chapter)Sample_app (chapters 3rd through 12th)3. The
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.