You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: db/seeds.rb
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,6 @@
1
1
2
2
# db/seeds.rb
3
3
4
-
5
4
# Create Puzzle records
6
5
Puzzle.create!([
7
6
{question: "Ruby or Rails provided this method? Array.new(5) { |i| i * 2 }",answer: :ruby,explanation: "`Array.new` is a core Ruby method that creates a new array with a specified size and optional block for initialization. This is part of Ruby’s core library."},
@@ -11,6 +10,9 @@
11
10
{question: "Ruby or Rails provided this method? params[:id]",answer: :rails,explanation: "`params[:id]` is used in Rails to fetch query parameters or URL parameters in controller actions."}
0 commit comments