Paperclip helps you implementing file attachment with ActiveRecord with Rails. Follow the example below and see how it works. Continue reading Rails – File Upload with Paperclip
Previously i have created a countries table which contains a country name and country code field. Get more information in the following link.
Rails – Preset Data in Database by Seed Fu Continue reading Rails – Create Some Simples Search Methods in ActiveRecord
I would like to add a selection list country field in a view but first i need to get the a country hash from the Country model. Continue reading Rails – Retrieve a Hash from Model
Previous related post: Rails – Find Location using Geocoder
Implementation of Geocoder on Model is simple and straight forward. What we need is just adding two more columns on the Model table for storing the coordinates(Latitude & Longitude) and one column for storing the address. Continue reading Rails – Implementation of Geocoder on Model