#ruby

[Solved] .rbenv/shims/ruby: Argument list too long

Published by Prabin Poudel 3 min read
cover: [Solved] .rbenv/shims/ruby: Argument list too long
When running the command to check the ruby version with 'ruby -v', it would take a really long time and return the error '.rbenv/shims/ruby: Argument list too long'

Build Twitter Bot with Ruby

Published by Prabin Poudel 11 min read
cover: Build Twitter Bot with Ruby
Did you know? We can also build bot with Ruby. Today we will be building twitter bot that retweets set of hashtags. We will be using twitter gem which uses Twitter API under the hood.

[Fix] Issue while installing ruby with rbenv in M1 Mac

Published by Prabin Poudel 1 min read
cover: [Fix] Issue while installing ruby with rbenv in M1 Mac
When installing Ruby with rbenv in M1 Mac, it throws Build fail error with message 'Inspect or clean up the working tree error ...' Today we will look at how we can resolve the error and install the ruby with rbenv in our M1 Mac.

Extract key or value from hash in ruby on rails

Published by Prabin Poudel 2 min read
cover: Extract key or value from hash in ruby on rails
Many times when working with pure sql queries for example, we need to extract keys and values separately. Learn how you can extract key or value from hash in Ruby on Rails.

Generate unique random numbers or tokens in ruby on rails

Published by Prabin Poudel 2 min read
cover: Generate unique random numbers or tokens in ruby on rails
Learn how you can generate random and unique number or token from given range of number in Ruby on Rails.