Software engineering and personal development

Tag: ruby on rails

Invalidate session after logout with Devise gem

Img source: interexchange.org

Devise is one of the most famous Ruby gems, which is a flexible authentication solution for Rails based on Warden. It comes with a lot of useful features, but it also has its limitations. One of them is that it does not invalidate a session even though you log out. One of the core developers behind Devise accepts it, and gives the advice of replacing cookie-based storage to address this issue. Fortunately, there is a quicker solution as well. Continue reading

Why you need Null Object Pattern and how to implement it

Co-Author: Rexhep Kqiku

There are many programming languages and frameworks out there, which are prepared to be used to solve problems. Although there are billions of problems that we may be asked to solve, there are usually some common themes among many of them. As we usually try to solve business problems, we also want to improve the quality of our work. This way, we have design patterns that are abstractions of some of the best ways to deal with certain situations. Continue reading

I became a Ruby on Rails and React contributor and you can too

Img source: gennovacap.com

I am really grateful that I have managed to contribute to a few open source projects, including the ones that I currently use on a regular basis: Ruby on Rails and React. My contributions are very minor fixes, and suggestions, and may not be that much worthy of the praise, but I want to use this article to inspire you to go and make your own contributions as well.

One of my core values is contribution and helping others. That’s one of the reasons why I love to write articles, and also contribute back to the very projects that I have benefitted from over the years.  

Although major frameworks that are largely used have gone through tons of reviews and careful analysis over the years, there is always room for improvement or addition. This means that you are not only able to fix bugs, or improve something that is already implemented, but you can also implement new features as well. Continue reading

How to deploy Redmine to Heroku

Img source: redmine.org

Redmine is a flexible project management web application that is open source, written in Ruby on Rails. If you need to start using it for your own projects, then chances are you need to deploy it to a server. In this article, you can see how to deploy the current latest stable version of Redmine to Heroku, as it sometimes can be a bit problematic. Continue reading

Build a Cryptocurrency Comparison Site using Ruby on Rails and TDD

Img prepared by: Shkodran Arifi

I recently had the pleasure to publish my first article at Scotch.io, which is a very popular platform. It is one of the longest articles that I have written so far. It is a written tutorial on how to build a cryptocurrency site in which you can see the changes of values of BitCoin, Ethereum and NasDaq overtime. The project accompanying this article is developed with Ruby on Rails using Test-Driven Development (TDD). Continue reading

How to send a base 64 encoded image to an API endpoint in Ruby on Rails

Img source: java67.com

I recently had to upload an image to an API endpoint in Rails, and did not found that much material online, so I decided to write this article describing how I managed to do this.

I was building an API that had to interact with an authentication micro service, where the request parameter was a Multipart image of a user file that should then be encoded in base 64 and get uploaded to AWS. Continue reading

© 2024 Fatos Morina

Theme by Anders NorenUp ↑