Posts with Tag Ruby Page 1 of 2
-
How to Call C Code from Ruby Using FFI
Simple Tutorial for Calling C Code From Ruby Code
-
Rails - New Shortcut for Not Null Columns in Migrations
Rails introduces a sleek new shortcut for creating not null columns in migrations. With a simple '!' symbol, you can now effortlessly define required fields in your database schema.
-
How to Install Ruby 3.3 with YJIT Enabled
In this blog post, I'll explain how to install Ruby with YJIT enabled. I use chruby as Ruby versioning manager.
-
Ribsum - Lightweight and Simple Lorem Ipsum Text Generator
Ribsum is a lightweight Ruby gem that allows you to easily generate lorem ipsum text.
-
How Add Elements an Array and Automatically Remove Duplicates in Ruby
While working with Array, using |= operator will automatically add elements and remove duplicates
-
Access Nested Hash Value with Dig Method in Ruby
It's better using dig method, you don't have to check nil for accessing nested value from a Hash
-
How to Solve "Could not find MIME type database" Error on M1 MacBook
Two solutions for this error: copy & paste from Freedesktop or install via Homebrew
-
Ruby Roda Web Application Framework Post Request Params
How to access params from POST request via Content-Type: x-www-urlencoded and Content-Type: application/json
-
Benchmark Jekyll Build Time - Ruby MRI vs JRuby
MRI has better performance than JRuby
-
How To Install Ruby 3.3 with chruby and uninstall Ruby 3.2 from chruby
Guide how to install MRI Ruby 3.3 with chruby and how to remove old version MRI Ruby 3.2 from chruby
-
Introducing Enkrip
Enkrip is Ruby gem to make your Active Record model seamlessly encrypt and decrypt attributes
-
Rails Rspec 3 View Test Examples
Some examples how to create view / html assertions with Rspec 3
-
How to Fix Frozen String Literal Error
frozen_string_literal is one of easiest way to optimize Ruby application, but sometimes it raises error if your old code is not compatible.
-
Date Operation in Ruby
Date operation example in Ruby with or without Rails and Active Record
-
Rails Object#presence vs Object#try
Based on my micro benchmark, Object#presence has better performance than Object#try
subscribe via RSS
Sponsored Links
- Register to Digital Ocean cloud with this link and get $200 credit
- Looking for cheap CDN? Bunny is the answer
- Alternative Cloud besides AWS and Digital Ocean