Search window

Hi, I’m a rails newbie in need for some help. I’d like to replace a
dropdown on a form with a pop-up window where I can search for a record
and then return the selected id for the original form.

Is there anything like this available in rails? Does anyone have a tip?

Thanks,
Gabriel.

Look into the ajax autocompleter:

http://api.rubyonrails.com/classes/ActionController/Macros/AutoComplete/ClassMethods.html

it’s similar to what you’re describing but it assumes that you know what
you’re looking for.

Hammed

Hammed M. wrote:

Look into the ajax autocompleter:

http://api.rubyonrails.com/classes/ActionController/Macros/AutoComplete/ClassMethods.html

it’s similar to what you’re describing but it assumes that you know what
you’re looking for.

Hammed

Thanks Hammed, this will help for sure. However for my case the pop-up
would be usefull for the following scenario.

Imagine a CRM application:
-Create new contact
-From within contact: search for company, if company doesn’t exist then
create new company
-Return company name and id to the contact form
-Save contact.

Using a pop-up I could search several fields and if the field doesn’t
exist I may create it.

Any ideas people?

Thanks,
Gabriel.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs