Posts

Showing posts from August, 2019

Ruby On Rails Application Performance Optimization Tutorial

Image
You created a web application in Ruby on Rails, and it seems like it's business logic works correctly, the UI is user-friendly, and the design is very attractive. But, are you sure that it will really meet all the expectations of its users? Application speed and performance are very important when it comes to project success. Users expect the application to load as quickly as possible. The standard page loading time is a maximum of 2 seconds. Prerequisite: For checking the precise speed of application pages run the application in production mode. check the disable cache from browser console. This will  completely disable the Google Chrome cache Now, we will check the existing application speed by browsing through each page of the application and keep them noted in .xls or any other file for comparing the speed of the application after optimization completes. There are several tools to measure the page loading time. For ease of use, I am using google chrome exten...

Fabric.js ultimate tutorial for ruby on rails

Image
What is Fabric.js Fabric.js is a very powerful and simple JavaScript HTML5 canvas library. Fabric provides an interactive object model on to of canvas element. Fabric also has a capability to convert the canvas SVG to canvas and canvas to SVG.   What should you do with Fabric.js Using Fabric.js you can create a populated object on canvas like a simple geometrical shape or complex shapes. You can upload an image on canvas and perform manipulation on an image like re-size image, rotate image, apply image filters, etc. You can add text on the canvas and perform formatting of text, like add font color. Add a text background color, change the font of the text, change the size of the font, etc. Fabric.js have built-in animation you can easily apply any object of the canvas. Fabric.js provides a free drawing to create anything you like. You can save canvas as a png, jpg, SVG and JSON format.   How you can integrate fabric.js into rails application Ther...

Introduction Of Some Important “Gems” In Rails 6 In 2019

Rails 6.0  comes with many new features and many improvements that can be beneficial for all small and bigger applications. There are many new features introduced in rails 6.0, I have pickup up some of them to introduce in my blog. In my blog I am going to introduce you with the important and cool gem which will be very useful for your application: 1. gem “action_text” 2. gem “active_storage” 1) Action Text Action Text is a brand new feature introduced in Rails 6.0. It will be going to make creating, editing and displaying rich text content very easy in your application. It includes the Trix editor that handles everything from formating to list, to embed ed images. The rich text content generated by the Trix editor using gem “action_text”is saved in its own RichText model that's associated with any existing Active Record model in the application. Any embedded attachments are automatically stored using Active Storage and associated with the included RichText mod...