Abstract: After having gone through multiple test versions, the official version of rails 4.0 has finally met with you. The focus of this version is to simplify web application development without the need for client JS/JSON Server Routing.
After several beta versions, the official version of rails 4.0 was finally available. This is a brand new version, with some new features added and some old features abandoned.
This version focuses on simplifying web application development without the need for client JS/JSON Server Routing. In addition, this version is worth your attention in the following three aspects:
- Use the automatic dependency management of key-based expiration embedded templates to easily implement Russian doll-caching
(Cache_digests ).
- Using turbolinks to speed up the client, you can turn the application into a single-page JavaScript Application without additional development.
- Declarative etags makes it easier to make use of HTTP refresh.
For developers, rails is still a great JSON server. It uses Ember. JS, backbone. JS, or angular. js to build the client JS view. However, with the release of 4.0, you can quickly build applications without passing through Server Routing.Program.
In addition, we have added live streaming for persistent links. rails 4.0 is a secure out-of-the-box thread server (without the need for config. threadsafe ).
In addition to adding these new features and fixing bugs, we are still doing some sorting and streamlining work, such as extracting outdated and infrequently used APIs.
For more details about rails 4.0, refer to the instructions on the official website.
Tutorial: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book? Version = 4.0