Login
Remember
Register
User DavidAnderson
Wall
Recent activity
All questions
All answers
Ask a Question
Answers by DavidAnderson
0
votes
Given this Category model with an attribute for "name", what code would fill in the blank so that it sets saved_name to a string that is the category name that existed before the name was changed?
answered
Sep 3, 2022
in
Ruby
ruby-on-rails
0
votes
Given a table of blog_posts and a related table of comments (comments made on each blog post), which ActiveRecord query will retrieve all blog posts with comments created during @range?
answered
Sep 3, 2022
in
Ruby
ruby-on-rails
0
votes
Which choice is not a valid Rails route?
answered
Sep 3, 2022
in
Ruby
ruby-on-rails
0
votes
If User is an ActiveRecord class, which choice would be expected to return an array?
answered
Sep 3, 2022
in
Ruby
ruby-on-rails
0
votes
Which part of the Rails framework is primarily responsible for making decisions about how to respond to a browser request?
answered
Sep 3, 2022
in
Ruby
ruby-on-rails
0
votes
If the only route defined is resources :products, what is an example of a URL that could be generated by this link_to method? link_to('Link', {controller: 'products', action: 'index', page: 3})
answered
Sep 3, 2022
in
Ruby
ruby-on-rails
0
votes
If a product has a user-uploadable photo, which ActiveStorage method should fill in the blank? class Product << ApplicationRecord ____ :photo end
answered
Sep 3, 2022
in
Ruby
ruby-on-rail
0
votes
How would you validate that a project's name is not blank, is fewer than 50 characters, and is unique?
answered
Sep 2, 2022
in
Ruby
ruby-on-rails
0
votes
What is the correct syntax for inserting a dynamic title tag into the header of your page from within an ERB view template?
answered
Sep 2, 2022
in
Ruby
ruby-on-rails
0
votes
Which choice best describes the expected value of @result? @result = Article.first.tags.build(name: 'Urgent')
answered
Sep 2, 2022
in
Ruby
ruby-on-rails
0
votes
What is the correct way to assign a value to the session?
answered
Sep 2, 2022
in
Ruby
ruby-on-rails
0
votes
Which statement about ActiveRecord models is true?
answered
Sep 2, 2022
in
Ruby
ruby-on-rails
0
votes
There is a bug in this code. The logout message is not appearing on the login template. What is the cause?
answered
Sep 2, 2022
in
Ruby
ruby-on-rails
0
votes
Which HTML is closes to what this code would output? <% check_box(:post, :visible) %>
answered
Sep 2, 2022
in
Ruby
ruby-on-rails
0
votes
You made a spelling mistake while creating a table for bank accounts. Which code would you expect to see in a migration to fix the error?
answered
Sep 2, 2022
in
Ruby
ruby-on-rails
0
votes
Review the code below. Which Ruby operator should be used to fill in the blank so that the sort method executes properly?
answered
Sep 2, 2022
in
Ruby
ruby-on-rails
0
votes
In a Rails controller, what does the code params.permit(:name, :sku) do?
answered
Sep 2, 2022
in
Ruby
ruby-on-rails
0
votes
In the model User you have the code shown below. When saving the model and model.is_admin is set to true, which callback will be called?
answered
Sep 2, 2022
in
Ruby
ruby-on-rails
0
votes
Which Rails helper would you use in the application view to protect against CSRF (Cross-Site Request Forgery) attacks?
answered
Sep 2, 2022
in
Ruby
ruby-on-rails
0
votes
What part of the code below causes the method #decrypt_data to be run?
answered
Sep 2, 2022
in
Ruby
ruby-on-rails
Page:
« prev
1
...
100
101
102
103
104
105
106
107
108
109
110
...
183
next »
...