Rails 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
Mysql 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
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.
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
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.
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.