Blogs

Almacenamiento en caché de rieles con gema dalli

Dalli is a high performance pure Ruby client for accessing memcached servers. It works with memcached 1.4+ only, as it uses the newer binary protocol. MemcacheMemcached is a quick in-memory protest reserving framework that can make Rails run much quicker with not very many changes.Memcached is an in-memory key-value store for little pieces of discretionary …

Almacenamiento en caché de rieles con gema dalli Leer más »

Use of Gon Gem with Javascript & Rails

Using Rails data as a part of javascript is an extremely regular need, particularly for Javascript applications such as Angular, Ember and SPA. If it is a small amount of data, we can directly assign it to the ruby variables. From rails view:Ex:- HTML: ; $(‘#user’).val(); HTML data attribute: <%= content_tag “div”, id: “posts”, data: …

Use of Gon Gem with Javascript & Rails Leer más »

Ways of Handling PayPal Refunds in Rails

PayPal Checkout includes payment solutions ranging from simple to robust that let the merchants as well as developers choose an integration option that can be the best-suited for their website and customers.In order to integrate Paypal Payment Gateway, we need to do the following: 1. Have a PayPal business or Premier account.2. Create a PayPal …

Ways of Handling PayPal Refunds in Rails Leer más »

How to generate & add sitemap to your Rails Application

The use of sitemap confers its own set of advantages to a website. While it can add significant value in terms of smooth website navigation and enhanced visibility for the search engines, it also empowers the website with the ability to immediately inform the search engines about any changes happening on the site. This leads …

How to generate & add sitemap to your Rails Application Leer más »

How to make your Rails Application Multilingual

Rails gem approach, MySQL approach and a Multilingual Rails structure Most of the world doesn’t speak English. That’s where internationalization and localization come in. Rails has a great i18n API.Reference: http://guides.rubyonrails.org/i18n.html It provides an easy-to-use and extensible framework for translating your application to a single custom language other than English or for providing multi-language support …

How to make your Rails Application Multilingual Leer más »

Multi-tenant Architecture with PostgreSQL Schemas

In Multi-tenant architecture by using single instance it serves multiple accounts. Each account is called a tenant. There are so many different approaches to implement multi-tenancy architecture using traditional or by using any gems. By comparing all those I found the simplest way of implementing Multi-tenancy that is with “Act as tenant” gem Representation of …

Multi-tenant Architecture with PostgreSQL Schemas Leer más »

es_ESSpanish