> With what error message? I'm not sure why that would be happening.

Here's my dev log:

ActionView::TemplateError (can't convert Hash into String) on line #46 
of app/views/search/index.rhtml:
46:     body = r.highlight(@condition, :field => :body)
    
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/helpers/text_helper.rb:38:in
 
`escape'
    
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/helpers/text_helper.rb:38:in
 
`highlight'
    #{RAILS_ROOT}/app/views/search/index.rhtml:46:in 
`_run_rhtml_search_index'
    #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:66:in 
`method_missing'
    #{RAILS_ROOT}/app/views/search/index.rhtml:45:in 
`_run_rhtml_search_index'
    #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:316:in 
`compile_and_render_template'
    #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:292:in 
`render_template'
    #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:251:in 
`render_file'
    #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:726:in 
`render_file'
    #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:648:in 
`render_with_no_layout'
    
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/layout.rb:245:in 
`render_without_benchmark'
    
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in
 
`render'
    
/Applications/Locomotive2/Bundles/rails112.locobundle/powerpc/lib/ruby/1.8/benchmark.rb:293:in
 
`measure'
    
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in
 
`render'
    #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:942:in 
`perform_action_without_filters'
    
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:368:in 
`perform_action_without_benchmark'
    
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in
 
`perform_action_without_rescue'
    
/Applications/Locomotive2/Bundles/rails112.locobundle/powerpc/lib/ruby/1.8/benchmark.rb:293:in
 
`measure'
    
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in
 
`perform_action_without_rescue'
    #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in 
`perform_action'
    #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:408:in 
`process_without_filters'
    
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:377:in 
`process_without_session_management_support'
    
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in
 
`process'
    #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:38:in 
`dispatch'
    #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:150:in 
`process_request'
    #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:54:in 
`process!'
    
/Applications/Locomotive2/Bundles/rails112.locobundle/powerpc/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/fcgi.rb:600:in
 
`each_cgi'
    
/Applications/Locomotive2/Bundles/rails112.locobundle/powerpc/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/fcgi.rb:597:in
 
`each_cgi'
    #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:53:in 
`process!'
    #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:23:in 
`process!'
    /Users/Merry/Sites/fall-release/public/dispatch.fcgi:24



@condition = title|body:"test"
Search works fine when I omit calling highlight.

- Winton

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
Ferret-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to