#ruby-on-rails
Read more stories on Hashnode
Articles with this tag
No need to re-write the wheel, let me redirect to this great article from Lily Reile. Obviously still up-to-date and really useful as the official...
While reading the official documentation, I did not understand some parts of the set up. Let's me explain here. My setup: 1 main database 1...
With Rails 7.1, you can list unused routes with: ./bin/rails routes --unused For Rails 6.0, 6.1 and 7.0, below is a script I used in my project to...
To run a script with your Rails application setup use rails runner https://guides.rubyonrails.org/command_line.html#bin-rails-runner # inline...
Are you good at regexp? I'm not and I found an extremely easy way to update a regexp to split a string in Ruby. Input abc,abc abc abc abc I just want...
Never forget the environment you are in. # .irbrc module ColorString refine String do def cyan = "\e[36m#{self}\e[0m" def bg_red =...