What do you want to save?
Add Code snippet
New code examples in category Ruby
-
Awgiedawgie 2022-01-26 05:15:04
rails tailwind template
# Get a minimal rails app ready to be deployed on Heroku with Tailwind, Simple form and debugging gems. $ rails new \ --database postgresql \ --webpack \ -m https://raw.githubusercontent.com/lioruby/rails-tailwind-template/master/minimal.rb \ CHA... Add solution -
-
Phoenix Logan 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 -
Phoenix Logan 2022-01-22 13:15:53
ruby fork self service
env: hash name => val : set the environment variable name => nil : unset the environment variable the keys and the values except for +nil+ must be strings. command...: commandline : command line string which is passed to the... Add solution -
Rocket Man 2021-11-22 11:34:17
og meta tags not working rails
<!-- app/views/offers/show.html.erb --> <% content_for :meta_title, "#{@offer.name} is on #{DEFAULT_META["meta_product_name"]}" %> <% content_for :meta_description, @offer.description %> <% content_for :meta_image,... Add solution