Font Size: a A A

The Research And Application Of Rails Framework In Web Development

Posted on:2009-12-18Degree:MasterType:Thesis
Country:ChinaCandidate:L WangFull Text:PDF
GTID:2178360242974388Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With the spread of Web application and the development of Web technology, developers urgently require a kind of Web Development Framework which can simplify development course, make development more convenient and improve development efficiency. J2EE is a popular Web Development Platform used by developers at the present time. With the diversification of developers' demands, more and more components have been added to J2EE, and XML configuration management files have become enlarged. All of these make J2EE overstaffed, which affects software development cycle and application running speed. So nowadays J2EE can not meet the needs of developers completely.Ruby on Rails Web Development Framework was developed by Danish programmer David supported by 37signals company in 2004. Compared with J2EE, Rails Framework has great advantages in development speed and deploying Web application. Rails encompasses the whole components for constructing web application, so developers could develop web applications without integrating other frameworks into Rails. It makes web development more convenient and efficient.In this paper, Rails framework was studied thoroughly, and some practices with Rails framework were done accordingly. This paper focused on the follows:Characteristics and core architecture of Rails were studied in detail and key technology of Rails was explored deeply. Moreover, advantages of Rails had been elaborated layer by layer.An on-line shopping system named SS_yuansu was developed in Rails, and during the course of development, the convenience and efficiency of Rails was validated.Through ensuring validity of information transmitted between databases and web browsers, the problem that Web applications developed with Rails could not display Chinese was solved successively.During this SS_yuansu application's development in Rails framework, the problem that if XML was used for data transmission, it had to be supported by API and two-way analysis was inevitable, and data transmission efficiency would be affected subsequently was encountered. So XML was replaced with JSON during the course of development, through this way, the amount of code was reduced dramatically, and data transmission efficiency was enhanced simultaneously.This paper explored the technology of Web application development in Rails framework thoroughly, and an on-line shopping system was constructed with Rails in this paper. In the course of the system's development, this paper put forward the solutions to the problems that Web applications developed with Rails could not display Chinese and that using XML for data transmission in Rails would decrease efficiency. These innovations optimized Rails framework in some extent and have great significance in promoting the spread and utilization of Rails in China.
Keywords/Search Tags:Ruby on Rails, ActiveRecord, Ajax, JSON
PDF Full Text Request
Related items