What do you want to save?
Add Code snippet
New code examples in category Ruby
-
-
Awgiedawgie 2022-03-18 23: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 09: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
Ranking is empty