Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6094923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:45:25+00:00 2026-05-23T12:45:25+00:00

I am trying to implement SO style autocomplete. I am using this gem to

  • 0

I am trying to implement SO style autocomplete. I am using this gem to download the necessary rails3-jquery-autocomplete.

Here is my controller:

autocomplete :tag, :name 

My layout has this:

<%= javascript_include_tag :defaults, "autocomplete-rails.js"  %>

My routes has this:

resources :posts do
    get :autocomplete_tag_name, :on => :collection    
 end

And my form has this:

<%= f.autocomplete_field :tag_list, autocomplete_tag_name_posts_path, :"data-delimiter" => ', ', :class => "tags" %>

I have the autocomplete-rails.js in my public/javascript folder. Yet for some reason I keep getting this error:

undefined method `autocomplete_field' for #<ActionView::Helpers::FormBuilder:0x0000011cb94ef8>. 

My environment.rb file looks like this:

# Load the rails application
require File.expand_path('../application', __FILE__)

# Initialize the rails application
NutraNation::Application.initialize!

What am I doing wrong? Some help would leave me forever in your debt.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:45:26+00:00Added an answer on May 23, 2026 at 12:45 pm

    This error is a Rails error, not a javascript error. The error basically means you’re calling a helper method (autocomplete_field) that doesn’t exist.

    Looks like you’re not including the auto_complete gem in the right place. Check your %APP_ROOT/config/environment.rb file, and make sure your gem is included there.

    Also, make sure you’ve included any necessary resources in your helper. Install instructions for the gem should explain any/all things you need to check to make sure it’s setup correctly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to implement a comet style, long polling connection using an XMLHttpResponse object.
trying to implement a dialog-box style behaviour using a separate div section with all
I'm trying to implement quicksort in a functional style using C# using linq, and
I am trying to implement a Comet style (e.g. chat) application using IronPython. While
im trying to implement the classic username availability checker with jquery and ajax. here's
I'm kind of like stuck trying to implement YUI autocomplete textbox. here's the code:
I'm trying to implement Mega Menu style menus using WPF. To see examples of
I am trying to implement this tab style in my program, i have it
I'm trying to implement my own qDebug() style debug-output stream, this is basically what
I'm trying to figure out the most efficient way to implement RoR-style partials/collections for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.