Ruby on Rails Foundation new project _ruby topics

Source: Internet
Author: User
Tags ruby on rails

Ruby on Rails directory structure

+ app/#控制器, model, view, help method, mail, static resource
+ bin/#rails脚本
+ config/#路由, database
+ db/   #数据库模式, migration file
+ lib/  # Expansion Module
+ log/  #日志
+ public/#公共资源
+ test/  #单元测试
-config.ru #Rack服务器的程序设置, for starting programs
- Gemfile,gemfile.lock #指定Gem依赖, for bundler gem
-Rakefile #保存并加载可在命令行中执行的任务, add tasks to Lib/tasks

New Project

Rails New Blog

bundle install #gem安装依赖

Gem Source Switch to http://mirrors.aliyuncs.com/rubygems/
The Gem package is the Ruby package, using the Bundler tool, http://bundler.io/

Run

Rails Server

Visit localhost:3000

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.