ruby on rails Rails Associations An association is a connection between two Active Record models. It makes much easier to perform various operations on the records in your code. We will divide associations into four categories: 1. One
graphql Testing GraphQL Server in NodeJS When we started using GraphQL in our NodeJS project [https://kolosek.com/sails-graphql-guide/], we had a struggle with writing tests: we read numerous blogs, searching for the best way. Unfortunately, there didn't seem
nodejs Anatomy of Sails.js API with GraphQL If you're having troubles with organizing API for the Node.js [https://kolosek.com/learn-about-node] app, using the Sails.js [https://sailsjs.com/] framework with the GraphQL [http://graphql.org/graphql-js/], know that
git Git Branches Several developers contribute to the same source code, and while some will be fixing bugs the others would be implementing new and different features. The problem raises, how to maintain different versions of the same code base? This is where the branch function shines!
database Rails 5 Change Database Column While working on a Rails application, we all have had to change the database column in some way. You can change the column name and the column type, as well as changing the
git Git Commands Tutorial - Part 2 In the last Git Commands article, we have learned how to use Git options and what they can do. Today, we will extend our reach and discover everything there is to know about commonly used Git Commands.
git Git Commands Tutorial - Part 1 There are many different ways to use Git. The most common are the original command line tools and GUI (Graphical User Interfaces). Here, we will cover the most important commands you should know about when you are working with Git.
ruby on rails Rails Debugging Even the best Rails developers in the world have to debug their code from time to time. Unlike other frameworks, Rails makes it easy to debug your code, so you can limit your downtime and get your applications up and running. Debugging has never been easier!
ruby on rails Rails respond_to block Explained When you start your first Rails application you might think that controller actions are only capable of rendering HTML. So why and how to use a respond_to block? Here, we will show
ruby on rails RSpec Rails Controller Test Rails is a web development framework, where model, view and controller are important aspects of your application. Controllers, just like models and viewers, need to be tested with Ruby communities favorite tool, RSpec.
react React JSX - How to do it the right way - Part II In the previous part of React JSX series [https://www.kolosek.com/react-jsx-loops/], we took a look at how to correctly loop through arrays and objects in React. In this article, we'll help
react React JSX - How to do it the right way - Part I Usually, when developing a website, you'll need some dynamical rendering, like a listing of items, showing some element under a certain condition and so on. You're all aware of the standard JS syntax
ruby on rails Rails Join Table Ultimate Tutorial This is a complete tutorial for creating join table in Ruby on Rails. It will show how to generate and create a join table and how to address associations between different models. It
ubuntu Update Firefox on Ubuntu There is an easy way to update Firefox and there is a little bit more complex way to do it. We'll cover both of them. Easy way to update Firefox sudo apt-get update
healthcare Healthcare Startups The revolution of the tech era had to undoubtedly bring changes in the field of medicine. Whether we like it or not, we are constantly attached to our digital devices, smartphones, tablets… And
carrierwave CarrierWave Upload Multiple Images [2018 Update] When you are building a web application, you definitely want to add an option for image uploading as well. In this tutorial, we will show you the necessary steps to enable upload multiple