Articoli tecnici

Utilizzo di Gon Gem con Javascript e 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: …

Utilizzo di Gon Gem con Javascript e Rails Leggi altro »

Gemma di refactoring del codice – 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 …

Gemma di refactoring del codice – Flay Leggi altro »

Modi di gestire i rimborsi PayPal 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 …

Modi di gestire i rimborsi PayPal in Rails Leggi altro »

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 Leggi altro »

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 Leggi altro »

Architettura multi-tenant con schemi 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 …

Architettura multi-tenant con schemi PostgreSQL Leggi altro »

it_ITItalian