Fatos Morina

Software engineering and personal development

Month: October 2017

Create easy-to-use interfaces for managing your data with RailsAdmin


Image src: rails.devcamp.com

It’s obvious that a lot of applications need an admin panel, where the administrator or other lower level users need privileges to do certain data manipulations. Not everyone of them should be a technical person. Thus, you may need to provide them a user-friendly interface which gives them this opportunity. Fortunately, you can insert an admin panel in your Rails application easily using RailsAdmin.

Continue reading

Add authorization restrictions in your applications using CanCan gem

Img source: railscarma.com

It is no doubt that there are certain pages that you do not need to have them viewed by all the visitors of your application. You can also have users of different roles that may not be allowed to access certain parts of your applications. There is a really good Ruby gem called cancan that excels at this. It makes the authorization of your app resources pretty straight-forward, so you do not have to duplicate permission checking code across controllers and views.

Continue reading

Get trending GitHub projects in your Chrome tab with GitHunt

GitHub is widely known as one of the most famous version control repository, in which you can find pretty much countless public projects for many programming languages. It makes it easy for you to collaborate with your team members, and also with other fellow developers around the globe with many public projects that you can learn and benefit from, and also contribute to. Among many other things, GitHub displays Trending Projects which make it easy for you to differentiate the projects that have received more attention than others. As a result, you have the ability to find projects that have received a lot of stars from other fellow developers in the recent past. Continue reading

Compare two texts, images or PDFs quickly with DiffChecker


Img source: winhelponline.com

You may sometimes need to make sure two files are equal, but do not know how to do it. For example, you may need to make sure two images, PDFs or two pieces of text are equal, but find it very difficult to do it manually. There is a really simple tool that I personally use that I find it really helpful. Continue reading

Invoke a Ruby method after the response has been already sent with the Spawnling gem

Rails controllers have callbacks that can be useful when we want to execute a particular piece of code before or after other methods have been invoked. However, there is no Rails built-in after_response_sent callback that could be used to invoke a method after we have rendered the response to the user, either via an HTML or JSON response. Continue reading

© 2018 Fatos Morina

Theme by Anders NorenUp ↑