Add to Chrome
Whichmethod call will create and save a new record into the database?
Which
method call will create and save a new record into the database?
self.table_name
User.create(name: "David", occupation: "Code Artist")
user = User.new
User.save
One of these is not an advantage of using Ruby onRails?
One of these is not an advantage of using Ruby on
Conventionover Configuration
Convention
over Configuration
DRY Principal (Don’t RepeatYourself)
DRY Principal (Don’t Repeat
Yourself)
Active Support
Scaffolding
What is Enterprise applications?
issome contentrequests need a whole new web page to be retrieved from the server
is
some content
requests need a whole new web page to be retrieved from the server
isa highly customizable softwarethat’s developed specificallyfor the needs of a particularorganization
a highly customizable software
that’s developed specifically
for the needs of a particular
organization
isthe ability to access all information from a single HTML page
the ability to access all information from a single HTML page
What difference between render and redirect_to
redirect_to doesn’t run any code in the target action, render is a way to handlereturning responses to an HTTP request
redirect_to
doesn’t run any code in the target action, render is a way to handle
returning responses to an HTTP request
render doesn’t run any code in thetarget action, redirect_to is a way to handle returning responses to an HTTPrequest
render doesn’t run any code in the
target action, redirect_to is a way to handle returning responses to an HTTP
request
render doesn’trun any code in the target action, redirect_to is as a sort of goto command
doesn’t
run any code in the target action, redirect_to is as a sort of goto command
This code add
member route
preview route
member block
photos route