Articles tagged 'Rails



You might also like

Convert Your Ruby Script To A Ruby Gem 

ShivaShiva Bhusal (Software Engineer) 7 Min. Read Aug 30, 2019
 Rails Gems New Gem RubyGems

You might find a easy guide to convert your existing stripts to Ruby Gems and Publish.
Read More..

You can simply transfer state from parent to child or use Context API to transfer model/context data to underlying components. But the later one is easier to maintain.
Read More..

I encountered a series of errors when I tried to run my existing Rails5 app in my freshly installed macOS Mojave. this generated some errors like, node not found, then I installed node using brew. then, Solution now it installs all the dependencies properly


Read More..

Dockerization Of Rails 6 App 

ShivaShiva Bhusal (Software Engineer) 2 Min. Read Jan 15, 2019
 Docker Containerization Rails Docker Compose Config

Learn to move your existing Rails 5/6 projects to Docker using Docker Compose.
Read More..

I ran into a weird situation today. Active Record objects stored in vars are removed when I switched from one tenant to another on the fly. This will create a weird test-failing scenario and you never know why its happening. def switch(name) yield(name) end @customers = [1,2,3] switch(‘shiva’) do |name| puts name puts @customers end […]


Read More..

Summary of the post.
Read More..

Installing Monit 

ShivaShiva Bhusal (Software Engineer) 3 Min. Read Sep 2, 2017
 Monit WebUI Rails Sidekiq PostGres

Keep your daemons always up and running. Monit barks at the daemons.
Read More..

Installing Ruby RVM is the best Tool to manage multiple versions in your system. # Update your package manager first: $ sudo apt-get update # Install dependencies for ruby # This installs CURL, Git and other dependencies sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties sudo apt-get […]


Read More..

Ruby On Rails: Problem Related To Routingy 

ShivaShiva Bhusal (Software Engineer) 1 Min. Read Oct 9, 2014
 Rails Ruby JS Proposal routingy

Problem I have to edit a proposal among many proposals. When we click edit button a popup appears with all fields filled. There is a button ‘Verify’ to preview the proposal before sending to client via Email. Suppose URL to edit proposal is proposals/:id/edit  It shows a popup with all fields filled and a ‘Send’ and […]


Read More..

Though they look and sound similar, there is significant difference between these method. Some forcefully update the record where some only set the attributes but do not send the query to the database.


Read More..


Write To Me

Hire me shiva bhusal
We'll never share your email with anyone else.
I'll never share your email with anyone else.