sure!
git://github.com/scambra/recordselect.git
if you're on RoR3 just add it to your Gemfile
gem 'recordselect', git => "git://github.com/scambra/recordselect.git"
bundle install
then in your controller set the column:
conf.column["some_model"].form_ui = :record_select
and in your related model controller
class SomeModelController < ApplicationController
record_select
and done!
record_select supports a lot of customization, like:
record_select :per_page => 12, :include => [:other_model], :search_on
=> ['others.name', 'other_models.title','some_models.description'],
:full_text_search => true, :label => proc {|r| "#{r.some_model.title}
- #{r.some_model.description} "}, :order_by => other_model.created_at'
be sure to pick the right version according to your rails/AS version.
enjoy,
On Wed, Oct 19, 2011 at 1:56 PM, JB <[email protected]> wrote:
> Does anyone have any suggestions on how best to implement an
> autocomplete box instead of a select box using active scaffold?
>
> By the way, you guys are great. I've learned so my over the last
> couple of weeks about active scaffold by posting to this group. Your
> answers have been much appreciated.
>
> --
> You received this message because you are subscribed to the Google Groups
> "ActiveScaffold : Ruby on Rails plugin" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/activescaffold?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en.