Blogues

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 En savoir plus "

Bases des sessions, des cookies et du référencement dans 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 …

Bases des sessions, des cookies et du référencement dans Rails En savoir plus "

Façons de gérer les remboursements PayPal dans 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 …

Façons de gérer les remboursements PayPal dans Rails En savoir plus "

Comment générer et ajouter un plan de site à votre application 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 …

Comment générer et ajouter un plan de site à votre application Rails En savoir plus "

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 En savoir plus "

Architecture multi-locataire avec schémas 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 …

Architecture multi-locataire avec schémas PostgreSQL En savoir plus "

fr_FRFrench