Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Two or more fields to Autocomplete #246

Open
vardhan-nyros opened this issue Dec 2, 2013 · 1 comment
Open

Adding Two or more fields to Autocomplete #246

vardhan-nyros opened this issue Dec 2, 2013 · 1 comment

Comments

@vardhan-nyros
Copy link

Hi,

I need to add two or fields to auto-complete field. I see many of the links says that it is under pull- request.Is that true if not can you please help me in this case.

My controller is user and User belongs to location.

In my controller I have

autocomplete :location , :name,:display_value => :funky_method

What I need is along with location name the User should be searched using postcode in location Model.

Here is my location Model

def funky_method
"#{self.name.capitalize} , #{self.postcode}"

end

I use Rails3.2.13 and Mongid as my backend.

Thanks in advance

@manusajith
Copy link
Member

@vardhan-nyros there are many PRs regarding this feature and we are working on it.
Meanwhile you can have a look at some them here and maybe integrate it into your app till we get this merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants