-
Notifications
You must be signed in to change notification settings - Fork 14
Group 6 Questions
-
Explain the basic MVC architecture within a Rails application? ¯\(ツ)/¯
-
What is an Active Record and what does it do?
-
What are Migrations in Rails?
-
What command do you need to use to create an Article model with the title attribute of String?
ANSWERS BELOW
Answers:
-
Explain the basic MVC architecture within a Rails application? Answer: (Line Items) Controller, (Line Items) View, (Active Record) Model <---> Database, (Browser), Routing
-
What is an Active Record and what does it do? Answer: An object that wraps a row in a database table or view, encapsulates the database access, and adds domain logic on that data.
-
What are Migrations in Rails? Answer: Migrations are Ruby classes that are designed to make it simple to create and modify database tables.
-
What command do you need to use to create an Article model with the title attribute of String? Answer: $ bin/rails generate model Article title:string text:text
This is my private wiki mainly for appointment organization. My web page is located at http://bkleinen.github.io.