Ruby on Rails tutorial

Source: Internet
Author: User

There 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 part from the test part. After thinking about it, I think the knowledge points can be divided into the following four points.

1. Use of Git
Initialize the GIT init Project
Add content git add.
Submit to the local repository git commit-M "Remarks"
Submit to remote branch git push
Pull content git pull
View branch git Branch

When adding a new function, you need to create a branch, switch to the master branch after development, and then merge the previously created Branch
Git checkout-B Posts
Git checkout master
Git merge posts

2. Ruby on Rails
For more information about rails, see http://guides.rubyonrails.org/v4.0.8 /.
Ruby on Rails Tutorial:
[1] basic static pages
[2] user model layer, logon, registration
[3] Weibo posts, follow, and cancel
[4] Permission Verification

3. Use of Bootstrap
Http://getbootstrap.com/2.3.2/ is used.
Basic layout, forms, buttons, tables, various components, script plug-ins

4. rspec Test
[1] Controller Layer Test
[2] model layer test
[3] Function Testing
[4] generation of test data
[5] test with guard monitoring and then run automatically

Ruby on Rails tutorial

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.