Ruby on Rails is really a web application framework.
Rails may be the framework, Ruby may be the language.
Created by David Heinemeier Hansson in 2005, it’s become famous online startup world because of its adoption by a few of the leading “startups” in our time, including Stripe, Uber and Groupon.
If you wish to learn how to enter in Ruby on Rails, this tutorial should provide you with an introduction to how to proceed. I will not get into specifics because Among the finest to provide you with a concept regarding the structure of the application. Should you follow things i propose, you need to more completely understand how these applications work.
All computer programs work in the same manner –
Information is inputted
Information is processed
Information is outputted
How a information is inputted and processed relies upon the woking platform the application operates on. How it’s outputted depends upon the application.
The main difference with web applications is the fact that their logic operates on a web server, using the data IO being passed online (particularly, the HTTP protocol).
The complication of web apps is you require the opportunity to accept inbound data, and return responses. This really is handled with a server program (NGinx or Apache). I’ll explain this in a moment.
Whenever you create a bit of software, you need to think about the “stack” which it runs.
The “stack” is the program needed to operate the application. In the realm of desktop games, for instance, the “stack” can include the kind of DirectX or perhaps a particular graphics driver.
The primary hold-back for would-be web application developers is knowing the way the “web” software stack works. Web works much like native applications, aside from one distinct difference – stateless.
The “Internet” operates underneath the HTTP protocol. Naturally, this is whats called a “stateless” protocol – each request you signal is recognized as independent towards the last. Unlike stateful protocols (which retain condition), stateless protocols need to rebuild the application’s condition every time.
Although what this means is absolutely nothing to many people, the thing is when you are likely to develop an internet based application, you should utilize a framework or technology set making the stateless nature of HTTP as integrated as you possibly can. Most pertinently, you’ll need an authentication system which rebuilds anyone’s session on every request (I’ll explain this inside a second).