1.
In Ruby on Rails, which of the following functions is used for named routes?
2.
In Ruby on Rails, which of the following commands is used to run migration?
3.
In Ruby on Rails, which of the following commands is used to add comments that contain the data model, to the model file?
4.
In Ruby on Rails, the following method returns _____________________________.
@user = User.all
=> [# created_at: "2010-01-05 00:57:46", updated_at: "2010-01-05 00:57:46">,
# "2010-01-05 01:05:24", updated_at: "2010-01-05 01:05:24">]
5.
In Ruby on Rails, what is the maximum length of the name attribute?
6.
In Ruby on Rails, which of the following about sweeper is true?
7.
In Ruby on Rails, which of the following statements about the polymorphic association is true?
8.
In Ruby on Rails, the routes of an application are listed ___________________________________.
9.
What is the output of the following Ruby on Rails code:
 

 
 
<h1> Sign up</h1>
<%=form_for(@user) do |f| %>
<% = render 'shared/error_messages' %>
<% end %>

 
 
<%= render 'shared/error_messages', :object => f.object %>

 
 

 

10.
In Ruby on Rails, any user can sign in but only the current user can update their information.