Skip to content

Commit

Permalink
Found jquery autocomplete gem, added it to gemfile in assets group, r…
Browse files Browse the repository at this point in the history
…e-added autocomplete lines in application.js and leads controller
  • Loading branch information
HuckyDucky committed Sep 4, 2012
1 parent 0757c04 commit 36a5036
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ source :rubygems

# Uncomment the database that you have configured in config/database.yml
# ----------------------------------------------------------------------
# gem 'mysql2', '0.3.10'
gem 'mysql2', '0.3.10'
# gem 'sqlite3'
gem 'pg', '~> 0.13.2'
# gem 'pg', '~> 0.13.2'

# Allows easy switching between locally developed gems, and gems installed from rubygems.org
# See README for more info at: https://github.com/ndbroadbent/bundler_local_development
Expand Down Expand Up @@ -78,6 +78,7 @@ end
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'rails3-jquery-autocomplete'
gem 'execjs'
gem 'therubyracer', :platform => :ruby # C Ruby (MRI) or Rubinius, but NOT Windows
gem 'uglifier', '>= 1.0.3'
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/application.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// NOTE:
// require autocomplete-rails
// Does NOT work. There is no such animal living anywhere on the internet.
//------------------------------------------------------------------------------

Expand All @@ -36,6 +35,7 @@
//= require event.simulate
//= require ajax-chosen-prototype
//= require crm_chosen
//= require autocomplete-rails
//= require search
//= require lists
//= require datepicker
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/entities/leads_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class LeadsController < EntitiesController
before_filter :get_data_for_sidebar, :only => :index
#autocomplete :account, :name, :full => true
autocomplete :account, :name, :full => true

# GET /leads
#----------------------------------------------------------------------------
Expand Down

0 comments on commit 36a5036

Please sign in to comment.