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