Finding Your Way Around Rails

一、application directory

1. config.ru: configures the Rack Webserver Interface, either to create Rails Meta applications or to use Rack Middlewares in your application.

2.Gemfile: specifies the dependencies of Rails application.

3.Gemfile.lock: records the specific versions for each of Rails application's dependencies.

4.Rakefile: defines tasks to run tests, create documentation, extract the current structure of schema, and more.

5.README: general information about Rails application

A place for Application most of work take places in the app directory

A place for Tests  test directory  including fixtures that define data used by our tests.

A place for Documentation 

A place for Supporting Libraries The lib directory holds application code that doesn’t fit neatly into a model, view, or controller.

The lib directory is also a good place to put code that's shared among models, views, or controllers.

A place for Logs  development.log, test.log, and production.log. 

A place for Static Web Pages  The public directory is the external face of Rails application.

A Place for Script Wrappers 

A Place for Temporary Files 

A Place for Third-Party Code  The vendor directory is where third-party code lives.

A Place for Configuration The config directory contains files that configure Rails.


二、Naming Conventions

转载于:https://my.oschina.net/jeekwong/blog/266381

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值