Login
Remember
Register
Ask a Question
Recent questions tagged ruby-on-rails
0
votes
1
answer
What is the correct syntax for inserting a dynamic title tag into the header of your page from within an ERB view template?
asked
Sep 2, 2022
in
Ruby
by
DavidAnderson
ruby-on-rails
0
votes
1
answer
Which choice best describes the expected value of @result? @result = Article.first.tags.build(name: 'Urgent')
asked
Sep 2, 2022
in
Ruby
by
DavidAnderson
ruby-on-rails
0
votes
1
answer
What is the correct way to assign a value to the session?
asked
Sep 2, 2022
in
Ruby
by
DavidAnderson
ruby-on-rails
0
votes
1
answer
Which statement about ActiveRecord models is true?
asked
Sep 2, 2022
in
Ruby
by
DavidAnderson
ruby-on-rails
0
votes
1
answer
There is a bug in this code. The logout message is not appearing on the login template. What is the cause?
asked
Sep 2, 2022
in
Ruby
by
DavidAnderson
ruby-on-rails
0
votes
1
answer
Which HTML is closes to what this code would output? <% check_box(:post, :visible) %>
asked
Sep 2, 2022
in
Ruby
by
DavidAnderson
ruby-on-rails
0
votes
1
answer
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?
asked
Sep 2, 2022
in
Ruby
by
DavidAnderson
ruby-on-rails
0
votes
1
answer
Review the code below. Which Ruby operator should be used to fill in the blank so that the sort method executes properly?
asked
Sep 2, 2022
in
Ruby
by
DavidAnderson
ruby-on-rails
0
votes
1
answer
In a Rails controller, what does the code params.permit(:name, :sku) do?
asked
Sep 2, 2022
in
Ruby
by
DavidAnderson
ruby-on-rails
0
votes
1
answer
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?
asked
Sep 2, 2022
in
Ruby
by
DavidAnderson
ruby-on-rails
0
votes
1
answer
Which Rails helper would you use in the application view to protect against CSRF (Cross-Site Request Forgery) attacks?
asked
Sep 2, 2022
in
Ruby
by
DavidAnderson
ruby-on-rails
0
votes
1
answer
What part of the code below causes the method #decrypt_data to be run?
asked
Sep 2, 2022
in
Ruby
by
DavidAnderson
ruby-on-rails
0
votes
1
answer
When Ruby methods add an exclamation point at the end of their name (such as sort!), what does it typically indicate?
asked
Sep 2, 2022
in
Ruby
by
DavidAnderson
ruby-on-rails
Page:
« prev
1
2
...