当前位置:网站首页>Rails advanced -- framework theory cognition and construction scheme construction (I)
Rails advanced -- framework theory cognition and construction scheme construction (I)
2022-06-28 14:26:00 【Floating fish a_ ec】
Preface
For individuals , Building your own website is undoubtedly a very tedious and time-consuming work , In particular, the whole network system should be built at the level of programming language . It involves a lot of different knowledge and content , And has features that are difficult to maintain . And on this premise , Various network frameworks have been applied . They consist of a number of generators . meanwhile , Inherited Ruby The many benefits of object-oriented languages .
in addition ,Rails The framework adds two new programmer friendly conventions :
i> Habit is greater than configuration ;
ii> Never write code again .
Catalog
Basic construction method
From a beginner's point of view , We all need a case , And it is analyzed and discussed . Then analyze its principle from the back , Observe its structure from the surface .
In the research process of many aspects of computer science , The most important point is the design of data structure . To be frank with you , It is the mastery of data and the call and understanding of the machine .
And for the whole rails The structure of the program is arranged as follows :
> Create project
> View the project directory structure
> View the project database configuration
> Create a homepage
> Use the generator to create Rails Program
>scaffold Use of generator
> Analyze the execution process of the program
> Perfect the website
Create project
Use rails establish web Applications can save a lot of time as developers . This is because rails Code generators are very handy . You can create one with a simple command web project .
The simplest "hello, world” The project construction code is as follows :
rails new hellosite
cd hellosite
rails server
filling :
边栏推荐
- Flutter series: offstage in flutter
- 智联招聘基于 Nebula Graph 的推荐实践分享
- Native JS implements drag and drop of page elements
- New drug discovery methods, AstraZeneca team improves ab initio molecular design through course learning
- 等保备案主体是谁?在当地网安进行备案是吗?
- 机器人的运动范围(DFS)
- Single responsibility principle
- MySQL从库Error:“You cannot ‘Alter‘ a log table...“
- What does VPS do? What are the famous brands? What is the difference with ECS?
- 设计一个有getMin功能的栈
猜你喜欢

外贸SEO 站长工具

Opengauss kernel: analysis of SQL parsing process

Tencent cloud international ECS has no network after logging in. How to troubleshoot?

Only four breakthrough Lenovo smart Summer Palace in mainland China won the "IDC Asia Pacific Smart City Award in 2022"

一个bug肝一周...忍不住提了issue

PC Museum - familiar and strange ignorant age

【中移芯昇】5. spi接口测试tf卡

Can your code talk? (upper)

中国内地仅四家突围 联想智慧颐和园荣获 “2022年IDC亚太区智慧城市大奖”

干货 | 科研人的KPI怎么算,H指数和G指数是什么
随机推荐
N皇后问题
等保备案主体是谁?在当地网安进行备案是吗?
Recommended practice sharing of Zhilian recruitment based on Nebula graph
Robot range of motion (DFS)
增额终身寿险有哪些产品可以买呢?
一个bug肝一周...忍不住提了issue
外贸邮件推广怎么统计维度
Research and Simulation of chaotic digital image encryption technology based on MATLAB
i++ , ++i
Ruijie switch configuration SSH password login command [easy to understand]
名创优品通过上市聆讯:寻求双重主要上市 年营收91亿
快手投资电商服务商易心优选
2022中式烹调师(高级)试题及在线模拟考试
Recommendation letter brain correspondent: if love is just a chemical reaction, can you still believe in love?
Numbers that only appear once
基于ASP的勤工俭学管理系统
3、项目的整体UI架构
Talking from the little nematode -- tracing the evolution of nervous system and starting life simulation
MySQL slave error: "you cannot 'alter' a log table“
Go array and slice, []byte to string[easy to understand]