What do you want to save?
Add Code snippet
New code examples in category Ruby
-
-
Awgiedawgie 2022-03-18 22:15:07
rails command line
rails new app_name #creates a new rails application rails server or rails s #runs the rails server rails generate or rails g #gives a list of available generators rails console or rails c #opens up the rails console that allows you # to interact ... Add solution -
Phoenix Logan 2022-03-18 08:10:03
ruby get the number of same element in array
names = ["Jason", "Jason", "Teresa", "Judah", "Michelle", "Judah", "Judah", "Allison"] counts = Hash.new(0) names.each { |name| counts[name] += 1 } # => {"Jason" ... Add solution -
Best helpers
Azdin
+5
Bridget W.
+5
Janet
+5
Karah E
+5
Ben Minton
+5
Phil Sweet
+5
LPH
+5
Derpy
+5
Calista
+5
ChemicalJen
+5