A framework is a programme, combination of programmes, or code library that automates the creation of the majority of your application. When you utilise a framework, your responsibility is to develop the portions of the app that allow it to accomplish the things you want it to do.
The Model View Controller principle divides the work of an application into three separate but closely cooperative subsystems
For handling data from a SQL database, ActiveRecord provides a variety of programming approaches and shortcuts. ActionView and ActionController give tools for modifying and showing data. Rails connects everything.