Following are simple steps :- 1.Into your gem file add gem ‘rails3-jquery-autocomplete’ . 2.Run the generator :- rails generate autocomplete:install . 3. And include autocomplete-rails.js on your layouts :-javascript_include_tag “autocomplete-rails.js”. 4.Just add it to your app/assets/javascripts/application.js file 5. Model Example Assuming… Read more ›
This blog helps you to add advertisement according to ipaddress of the user. The steps required for this advertisement module goes as follows: Step 1: Create advertisement model which contains longitude and latitude field through state and city drop down… Read more ›
rails_best_practices gem is used to check the quality of rails codes. rails_best_practices works well only in ruby 1.9.2 and ruby 1.9.3 so far. FOR MORE INFORMATION REFER TO FOLLOWING LINK 1. https://github.com/railsbp/rails_best_practices 2. http://railscasts.com/episodes/252-metrics-metrics-metrics?view=asciicast
Sunspot gem is a solution for adding full-text searching to Ruby applications. It uses Solr in the background. FOR MORE INFORMATION REFER TO THIS LINK http://railscasts.com/episodes/278-search-with-sunspot?view=asciicast
If you are looking for a Text editor for Rails3, then NicEdit is the one of the best editor. NicEdit is a Lightweight and Inline Content Editor which is pretty easy to install and use with Rails application both on… Read more ›
Quick Hash to a URL Query trick Got a hash of values you want to convert into a url query string? Use the to_query method: “http://www.example.com?” + { language: “ruby”, status: “awesome” }.to_query # => “http://www.example.com?language=ruby&status=awesome” Want to do it… Read more ›
Following are the steps for installing mongodb on ubuntu.MongoDB is a document-based database engine which works differently from traditional relational databases such as MySQL in that it is schema-free. Type gksudo gedit /etc/apt/sources.list in terminal and include the following line… Read more ›
I have uploaded the code in Gist. Click Here You need to include require ‘csv’ in config/application.rb.
As you know spree is open source e-commerece platform which is designed to make e-commerce flexible. Following are few steps to install spree. 1. sudo apt-get install imagemagick : It is an open source software suite for displaying, converting, and… Read more ›
Recently, in one module I wanted to add validation on checkbox selection & display my form data in pop-up box(viz. Facebox) to boot, on onclick event of given link,i.e unless and untill user does not select checkbox, it will not… Read more ›