What do you want to save?
Add Code snippet
New code examples
-
Ruby 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 -
Other 2022-03-10 20:45:07
heroku
Heroku is a cloud platform as a service supporting several programming languages. One of the first cloud platforms, Heroku has been in development since June 2007, when it supported only the Ruby programming language, but now supports Java, Node.js, Scal... Add solution -
-
Ruby 2022-01-23 00:56:07
ruby sign a certificate with the CA
key = OpenSSL::PKey::RSA.new 2048 cert = OpenSSL::X509::Certificate.new cert.version = 2 cert.serial = 2 cert.subject = OpenSSL::X509::Name.parse "/DC=org/DC=ruby-lang/CN=Ruby certificate" cert.issuer = root_ca.subject # root CA is the issuer ce... Add solution -
Other 2021-11-19 13:32:20
include vs extend
# Ruby program to understand include and extend # Creating a module contains a method module Geek def prints(x) puts x end end class GFG # by using bo... Add solution