Articles tagged 'Rails
Convert Your Ruby Script To A Ruby Gem
Shiva Bhusal (Software Engineer) 7 Min. Read Aug 30, 2019
Rails Gems New Gem RubyGems
Read More..
Tictac Toe Using React Context Api With Ruby On Rails
Shiva Bhusal (Software Engineer) 16 Min. Read Jul 23, 2019
ReactJS React Tic Tac Toe Game Nodejs Ruby On Rails Rails Context API JSX
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
Shiva Bhusal (Software Engineer) 2 Min. Read Jan 15, 2019
Docker Containerization Rails Docker Compose Config
Read More..
Rails | Apartment Gem | Resets Ar Objects When Tenant Switched
Shiva Bhusal (Software Engineer) 1 Min. Read Dec 5, 2018
Problem Rails Ruby JS Apartment Multi Tenancy PG Postgresql schema
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..
Ruby On Rails Interview Practice Questions And Answers
Shiva Bhusal (Software Engineer) 0 Min. Read Oct 15, 2018
Ruby Rails Interview Questions Practice
Read More..
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..
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..
Difference Between Update, Update Columns, Update Column, Update Attributes, Assign Attributes
Shiva Bhusal (Software Engineer) 1 Min. Read Oct 8, 2014
Rails Ruby Active Record Update update_columns update_column
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..
You might also like
Convert Your Ruby Script To A Ruby Gem
Shiva Bhusal (Software Engineer) 7 Min. Read Aug 30, 2019
Rails Gems New Gem RubyGems
Read More..
Tictac Toe Using React Context Api With Ruby On Rails
Shiva Bhusal (Software Engineer) 16 Min. Read Jul 23, 2019
ReactJS React Tic Tac Toe Game Nodejs Ruby On Rails Rails Context API JSX
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
Shiva Bhusal (Software Engineer) 2 Min. Read Jan 15, 2019
Docker Containerization Rails Docker Compose Config
Read More..
Rails | Apartment Gem | Resets Ar Objects When Tenant Switched
Shiva Bhusal (Software Engineer) 1 Min. Read Dec 5, 2018
Problem Rails Ruby JS Apartment Multi Tenancy PG Postgresql schema
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..
Ruby On Rails Interview Practice Questions And Answers
Shiva Bhusal (Software Engineer) 0 Min. Read Oct 15, 2018
Ruby Rails Interview Questions Practice
Read More..
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..
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..
Difference Between Update, Update Columns, Update Column, Update Attributes, Assign Attributes
Shiva Bhusal (Software Engineer) 1 Min. Read Oct 8, 2014
Rails Ruby Active Record Update update_columns update_column
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..