当前位置:网站首页>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 :
边栏推荐
猜你喜欢

ArcGIS vector center point generates rectangle and cuts TIF image for deep learning sample training

Ionq and Ge research confirmed that quantum computing has great potential in risk aggregation

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

flutter 系列之:flutter 中的 offstage

外贸SEO 站长工具

Talking from the little nematode -- tracing the evolution of nervous system and starting life simulation

The time schedule for the soft test in the second half of 2022 has been determined!
![[Zhongyi Xinsheng] 5 SPI interface test TF Card](/img/d9/56ded362b3055f4f0efc3ce0eec5d5.jpg)
[Zhongyi Xinsheng] 5 SPI interface test TF Card

Recommended practice sharing of Zhilian recruitment based on Nebula graph

Source code analysis of ArrayList
随机推荐
从小小线虫谈起——溯源神经系统进化,开启生命模拟
Ionq and Ge research confirmed that quantum computing has great potential in risk aggregation
Thread life cycle and its methods
加油站(贪心)
SPI接口简介-Piyu Dhaker
30 sets of JSP website source code collection "suggestions collection"
flutter 系列之:flutter 中的 offstage
Cat dog queue
2022 recurrent training question bank and online simulation examination for safety inspection of metal and nonmetal mines (underground mines)
Hundreds of lines of code to implement a JSON parser
运行近20年,基于Win 98的火星探测器软件迎来首次升级
Explanation of sprintf function in C language
Multi dimensional monitoring: the data base of intelligent monitoring
Reverse a stack with recursive functions and stack operations only
Recommended practice sharing of Zhilian recruitment based on Nebula graph
开源社邀您参加OpenInfra Days China 2022,议题征集进行中~
Double buffer drawing
Play NAS home NAS server setup scheme "suggestions collection"
Connected to rainwater series problems
i++ , ++i