Explain me what Are The Components Defined In The Model From Mvc Architecture?
Submitted by: MuhammadThe components involved in defining the model are as follows:
☛ Validations: this is one of the very essential components and it defines the validations that are being put up on the input type of stream like validate_presence_of, format_of, etc.
☛ Relationship: this is another type of component that describe the relationship between different types of components and it shows the relationship in the form of has_one, has_many, etc.
☛ Callbacks: this is essential when it comes to respond after the failure and it allows the application to have certain functionality during failure. This can be given as before_save, after_save, etc.
☛ Validation group settings: allow users to define the installed plugin settings.
☛ Active record association relationship: allows current records to be actively having the relationship between one another.
Submitted by: Muhammad
☛ Validations: this is one of the very essential components and it defines the validations that are being put up on the input type of stream like validate_presence_of, format_of, etc.
☛ Relationship: this is another type of component that describe the relationship between different types of components and it shows the relationship in the form of has_one, has_many, etc.
☛ Callbacks: this is essential when it comes to respond after the failure and it allows the application to have certain functionality during failure. This can be given as before_save, after_save, etc.
☛ Validation group settings: allow users to define the installed plugin settings.
☛ Active record association relationship: allows current records to be actively having the relationship between one another.
Submitted by: Muhammad
Read Online Ruby on Rails Developer Job Interview Questions And Answers
Top Ruby on Rails Developer Questions
☺ | What is RVM? |
☺ | What is Rails Scaffolding? |
☺ | Explain me what Are The Components Defined In The Model From Mvc Architecture? |
☺ | Please explain request/response cycle? |
☺ | Explain what’s different between ActiveRecord::Relation’s count, length and size methods? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |