Artículos técnicos

Uso de Gon Gem con Javascript y 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: …

Uso de Gon Gem con Javascript y Rails Leer más »

Gema de refactorización de código - Flay

Keeping your code elegant and no code clones while building up a vast Rails application can be a significant test, notwithstanding for an accomplished developer. Fortunately, there is a gem that make this code refactoring much simpler. For a great many people, dead/wasteful code will develop after some time. Others will find themselves in such …

Gema de refactorización de código - Flay Leer más »

Conceptos básicos de Sesiones, Cookies y SEO en Rails

Rails uses a CookieStore to handle sessions. What it means is that every one of the information expected to recognize a client’s session is sent to the customer and nothing is put away on the server. When a user sends a request, the session’s cookie is processed and validated so rails, warden, devise, etc. can …

Conceptos básicos de Sesiones, Cookies y SEO en 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 »

Cómo generar y añadir un mapa del sitio web a una aplicación Rails

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 …

Cómo generar y añadir un mapa del sitio web a una aplicación Rails Leer más »

Cómo hacer que su aplicación Rails sea multilingüe

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 …

Cómo hacer que su aplicación Rails sea multilingüe Leer más »

Arquitectura multi-tenant con esquemas PostgreSQL

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 …

Arquitectura multi-tenant con esquemas PostgreSQL Leer más »

es_ESSpanish