Ruby on Rails Interview Questions and AnswersPosted by sivacynixit on October 17th, 2019 What exactly do you know about Ruby on Rails and how well it can be defined? What exactly is the role of Active Record in the Ruby? Can you tell a few factors that have contributed towards the success or the popularity of Ruby on Rails?
Get more additional info at Ruby on rails training What Is Rails?
Explain About Restful Architecture? RESTful: REST stands for Representational State Transfer. REST is an architecture for designing both web applications and application programming interfaces (API’s), that’s uses HTTP. RESTful interface means clean URLs, less code, CRUD interface. CRUD means Create-READ-UPDATE-DESTROY. In REST, they add 2 new verbs, i.e, PUT, DELETE. What Is Orm In Rails? ORM tends for Object-Relationship-Model, where Classes are mapped to table in the database, and Objects are directly mapped to the rows in the table. How Many Types Of Associations Relationships Does A Model Have? When you have more than one model in your rails application, you would need to create connection between those models. You can do this via associations. Active Record supports three types of associations: one-to-one: A one-to-one relationship exists when one item has exactly one of another item. For example, a person has exactly one birthday or a dog has exactly one owner. one-to-many: A one-to-many relationship exists when a single object can be a member of many other objects. For instance, one subject can have many books. many-to-many: A many-to-many relationship exists when the first object is related to one or more of a second object, and the second object is related to one or many of the first object. You indicate these associations by adding declarations to your models: has_one, has_many, belongs_to, and has_and_belongs_to_many. Take your career to new heights of success with Ruby on rails Online Training What Are Helpers And How To Use Helpers In Ror? Helpers are modules that provide methods which are automatically usable in your view. They provide shortcuts to commonly used display code and a way for you to keep the programming out of your views. The purpose of a helper is to simplify the view. What Is Mvc? And How It Works? MVC tends for Model-View-Controller, used by many languages like PHP, Perl, Python etc. The flow goes like this: Request first comes to the controller, controller finds and appropriate view and interacts with model, model interacts with your database and send the response to controller then controller based on the response give the output parameter to view. How Many Types Of Callbacks Available In Ror?
Mention what are the positive aspects of Rails? Rails provides many features like
Explain how Symbol is different from variables? Symbol is different from variables in following aspects
Read on to Find more Ruby on rails online Course Like it? Share it!More by this author |