1.  the data being presented by the web page

2.  HTTP methods (post, get, put, delete)

3.  data from model objects AND the page template

4.  before_filter :check_logged_in, :only => [:edit, :update]

4
Correct Answer :

before_filter :check_logged_in, :only => [:edit, :update]


Explanation :
No Explanation available for this question

1.  CamelCase

2.  ruby make

3.  a web page

4.  ActionPack

4
Correct Answer :

a web page


Explanation :
No Explanation available for this question

1.  for ad in @ads

2.  integration test

3.  Representational State Transfer

4.  an object-relational mapping library

4
Correct Answer :

an object-relational mapping library


Explanation :
No Explanation available for this question

1.  integration test

2.  a responder object

3.  validate

4.  validates_numericality_of

4
Correct Answer :

validates_numericality_of


Explanation :
No Explanation available for this question

1.  CamelCase

2.  ActiveRecord

3.  an object

4.  underscores

4
Correct Answer :

ActiveRecord


Explanation :
No Explanation available for this question

1.  rails generate migration AddPhoneToTickets phone:string

2.  the data being presented by the web page

3.  data from model objects AND the page template

4.  right after the line introducing the class in the controller

4
Correct Answer :

right after the line introducing the class in the controller


Explanation :
No Explanation available for this question

1.  unit, functional, and integration tests

2.  a script that alters the structure of the underlying database

3.  so that users can’t accidentally resubmit information by refreshing the page

4.  the data being presented by the web page

4
Correct Answer :

so that users can’t accidentally resubmit information by refreshing the page


Explanation :
No Explanation available for this question

1.  from general to specific (‘/ads/’ and then ‘/ads/:id’)

2.  include test.xml to root of “public” folder and , render (:partial=>’map’, :locals=>{:data=>’/test.xml’})

3.  just replace the word “scaffold” with the word “model”

4.  login method (that checks a username and password) and , a filter (that calls the login method when needed)

4
Correct Answer :

include test.xml to root of “public” folder and , render (:partial=>’map’, :locals=>{:data=>’/test.xml’})


Explanation :
No Explanation available for this question

1.  development, test, production

2.  render :partial

3.  RAILS_ENV (RAILS_ENV=production)

4.  integration test

4
Correct Answer :

development, test, production


Explanation :
No Explanation available for this question

1.  just replace the word “scaffold” with the word “model”

2.  it is not associated with a model

3.  username == “admin” && password == “some_password”

4.  do |f| (where “f” can be anything)

4
Correct Answer :

just replace the word “scaffold” with the word “model”


Explanation :
No Explanation available for this question

Interview Questions

MongoDB
Java Script
Node JS
PHP
JQuery
Python