Tekniska artiklar

Användning av Gon Gem med 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: …

Användning av Gon Gem med Javascript & Rails Läs mer »

Aktiv admin

Admin section is a common module for most of the applications. For Rails applications we have a gem called Active Admin. That can be used to create application from scratch to admin interfaces with little effort. Introduction Its a framework where all the admin tasks can be managed. It creates the beautiful admin interface that …

Aktiv admin Läs mer »

Sätt att hantera PayPal-återbetalningar i 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 …

Sätt att hantera PayPal-återbetalningar i Rails Läs mer »

Hur man genererar och lägger till en webbplatskarta till din Rails-applikation

Användningen av webbplatskartan ger en egen uppsättning fördelar för en webbplats. Även om det kan tillföra betydande värde när det gäller smidig webbplatsnavigering och förbättrad synlighet för sökmotorerna, ger det också webbplatsen möjlighet att omedelbart informera sökmotorerna om eventuella ändringar som sker på webbplatsen. Detta leder till ...

Hur man genererar och lägger till en webbplatskarta till din Rails-applikation Läs mer »

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 Läs mer »

Arkitektur för flera hyresgäster med PostgreSQL-scheman

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 …

Arkitektur för flera hyresgäster med PostgreSQL-scheman Läs mer »

sv_SESwedish