Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Recent questions tagged ruby-on-rails
Home
Tag
ruby-on-rails
0
votes
Q: How do you add Ruby code inside Rails views and have its result outputted in the HTML file?
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
0
votes
Q: A way that views can share reusable code, such as formatting a date, is called a _?
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
0
votes
Q: What is a standard prerequisite for implementing Single Table Inheritance (STI)?
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
0
votes
Q: Where would this code most likely be found in a Rails project? scope :active, lambda { where(:active => true) }
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
0
votes
Q: Given this code, and assuming @user is an instance of User that has an assigned location, which choice would be used to return the user's city?
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
0
votes
Q: When rendering a partial in a view, how would you pass local variables for rendering?
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
0
votes
Q: What decides which controller receives which requests?
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
0
votes
Q: Which code would you add to return a 404 to the API caller if the user is not found in the database?
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
0
votes
Q: After this migration has been executed, which statement would be true?
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
0
votes
Q: Within a Rails model with a cache_key method, which code snippet will expire the cache whenever the model is updated?
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
0
votes
Q: Which code sample will skip running the login_required "before" filter on the get_posts controller action?
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
0
votes
Q: Which choice is an incorrect way to render a partial?
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
0
votes
Q: Given two models, what is the issue with the query used to fetch them?
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
0
votes
Q: 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?
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
0
votes
Q: 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?
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
0
votes
Q: Which choice is not a valid Rails route?
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
0
votes
Q: If User is an ActiveRecord class, which choice would be expected to return an array?
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
0
votes
Q: Which part of the Rails framework is primarily responsible for making decisions about how to respond to a browser request?
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
0
votes
Q: 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})
asked
Sep 3, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
0
votes
Q: How would you validate that a project's name is not blank, is fewer than 50 characters, and is unique?
asked
Sep 2, 2022
in
Ruby
by
DavidAnderson
(
8.9k
points)
ruby-on-rails
Page:
1
2
next »
...