On Viernes, 7 de Mayo de 2010 11:00:15 cschlaefcke escribió:
> Hi Folks,
>
> I just downloaded the latest version from
> http://github.com/activescaffold/active_scaffold/zipball/master and I
> think I found a bug regarding the LiveSearch feature of AS.

Enabling live search has been changed, live search is no more an action, is a 
config option of search, use:
config.search.live = true
instead of
config.actions.swap :search, :live_search

It was deprecated in rails-2.3 branch

>
> When opening a page where LS is enabled I run into this error:
>
> Undefined method `live_search' for #<ActiveScaffold::Config::Core:
> 0x2d27f24>
>
> vendor/plugins/activescaffold/lib/active_scaffold/configurable.rb:
> 19:in `method_missing'
> vendor/plugins/activescaffold/lib/active_scaffold/config/core.rb:
> 186:in `method_missing'
> vendor/plugins/activescaffold/lib/active_scaffold/config/core.rb:
> 137:in `send'
> vendor/plugins/activescaffold/lib/active_scaffold/config/core.rb:
> 137:in `_load_action_columns'
> vendor/plugins/activescaffold/lib/active_scaffold/data_structures/
> actions.rb:20:in `each'
> vendor/plugins/activescaffold/lib/active_scaffold/data_structures/
> actions.rb:20:in `each'
> vendor/plugins/activescaffold/lib/active_scaffold/config/core.rb:
> 136:in `_load_action_columns'
> vendor/plugins/activescaffold/lib/active_scaffold.rb:79:in
> `active_scaffold'
> app/controllers/my_controller.rb:2
>
> I found out that the vendor/plugin/as/lib/config/live_search.rb is
> missing and even replacing it with an older version won´t fix the
> problem.
>
> I switch back to the former version I used and hope that LS will work
> again someday.
>
> Regards,
>
> Christian

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
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.

Reply via email to