Profiling Rails Apps with Rack-Mini-Profiler

This tutorial will discuss profiling Ruby on Rails Applications using rack-mini-profiler gem. rack-mini-profiler gem helps finding performance bottlenecks by showing speed badge on every page which can be configured to be displayed in particular environments. E.g. development/staging/production environment.

»
Author's profile picture Akshay Mohite on Rails

Rails Pluck vs Select and Map/Collect

In Rails, Pluck vs Select can be understood while active record querying. Pluck is used to get an array of particular attribute based on particular condition. Same can be obtained using select and then collect on a model. This tutorial will help you understand the difference between these ways of collecting specific attribute values.

»
Author's profile picture Akshay Mohite on Rails

Ruby Pass by Value or Reference

Ruby pass by value or reference, which one of them is used when object/variables are passed to the functions. This tutorial will help you understand how passing value/objects in Ruby work.

»
Author's profile picture Akshay Mohite on Rails

Rails meta_request gem and Rails Panel

meta_request gem is used with Rails application for profiling and performance improvement. This gem is used with Rails Panel chrome extension. This tutorial will help you understand how to use both for profiling and performance improvement of your Rails Applications.

»
Author's profile picture Akshay Mohite on Rails

Integrate awesome_print with Rails Console

Integrate awesome_print with Rails Console and Interactive Ruby -

»
Author's profile picture Akshay Mohite on Ruby

Rails Migration Change vs Up Down Methods

Rails Migrations have different ways of writing with change or up down methods. This tutorial will discuss exact difference between the both and what you should use for your migration. Rails Migration Change vs Up Down methods is important to be understood otherwise your migrations may behave in a way you might not want.

»
Author's profile picture Akshay Mohite on Rails

Rails Connect to Remote Database in Development

In Rails Connect to Remote Database on localhost, task can be achieved by editing database.yml file in your Rails application. Make changes to host, username, password and database in your database yaml file to connect to remote database.

»
Author's profile picture Akshay Mohite on MySQL and Rails

Ruby read json file to hash

In Ruby read json file to hash can be achieved using File Handling. Example to parse json file to hash is illustrated with this tutorial.

»
Author's profile picture Akshay Mohite on Rails

Ruby draw line on image using RMagick

In Ruby draw line on image, draw circle on image/ various shapes can be drawn using RMagick gem. To install RMagick gem you need to add RMagick in Gemfile

»
Author's profile picture Akshay Mohite on Rails

Pagination in Rails with will_paginate gem

Pagination in Rails can be implemented easily with will_paginate gem. will_paginate modifies Collection of ActiveRecord in a way to implement pagination.

»
Author's profile picture Akshay Mohite on Rails

What is attr_accessor in Rails?

attr_accessor is used to define an attribute for object of Model which is not mapped with any column in database. This answers question - What is attr_accessor in Rails.

»
Author's profile picture Akshay Mohite on Rails

Rails Migration Difference between Text and String

While working with Rails Migration Difference between Text and String is important to be known to every developer. Columns and their data types are finalized while deciding Table structure.

»
Author's profile picture Akshay Mohite on Rails

How to integrate Semantic UI Rails with Rails App

Semantic UI is the new popular CSS, JS framework for beautifying your Website. Tutorial will help understand how to integrate Semantic UI with Rails application and how to test the sample Semantic UI components with your Rails application.

»
Author's profile picture Akshay Mohite on Rails

How to integrate Twitter Bootstrap Rails with Rails

How to Integrate Twitter Bootstrap Rails with Rails project is the First question that developers have to face before starting a new project. It can be done using Gem twitter-bootstrap-rails or manually.

»
Author's profile picture Akshay Mohite on Rails

ActiveRecord Attributes – access using Strings, Symbols and Direct Access

Attributes can be accessed from ActiveRecord in various ways including symbolised, stringified or direct access. Each type of access has it’s own advantages and disadvantages as we will see in this tutorial.

»
Author's profile picture Akshay Mohite on Rails