Rootstrap Blog

Tag: rails

Total 19 Posts

How to customize the display name of dynamic ActiveAdmin search filters

Working with ActiveAdmin At Rootstrap, my first assignment was to develop a Ruby on Rails application which uses ActiveAdmin (with ActiveAdmin Addons) as a framework to implement the user interface. I had never used ActiveAdmin before and I found myself reading a lot of documentation of the gem, in some

Continue Reading

Rails N + 2 queries

We usually try to solve performance problems by using #includes to get rid of N + 1 queries but this doesn’t always fix the issue; in fact, it can even create more queries under some circumstances. This post shows a few examples of when that happens and how to deal with it.

Continue Reading

How to Improve Maintainability in Rails Applications Using Patterns. Part I

Introduction Software is constantly evolving, both in specification and implementation. Keeping an extensible and maintainable codebase is therefore crucial in order to deal with these changes quickly and easily. Ruby on Rails comes with a lot of good techniques and patterns out of the box that facilitate this. Nevertheless, some

Continue Reading

Payment platforms for mobile apps

It’s common these days to see apps that offer to sell you in-app content on your mobile device. Sometimes they only sell virtual things like coins, diamonds, and credits that give users access to certain functionalities. But on a lot of e-commerce apps, like Amazon, you can buy physical goods. Both types of apps have platforms that manage payments. And there are many payment platform options to choose from. This article lists some of them, along with their pros and cons.

You can’t always use the payment platform you want. You might want to sell virtual or digital goods on your app like coins and credits, but you don’t provide another way to do that like a web page. In this case, you must use in-app purchases to be approved by Apple. But if you run an e-commerce page where you sell solid goods like clothes, you can use other payment methods.

Continue Reading