rails search with texticle: private method `scan' called for #<Array:0x103f03f08> -


I have a rail app that I want to search with Tendlow's textual. This works fine in the console, but in my app I get an error like this:

  /opt/local/lib/ruby/gems/1.8/gems/texticle-1.0.3 / Lib /texticle.rb: 65: IN` index '/ users / vjmair / gmy / rub / 1.8 / jms / actitary corrupt -2.3.8 / liib / active_rockord / nemescope. Rb: 92: IN' call '/ user / VJMAR / .gem / ruby ​​/ 1.8 / gems / activerecord-2.3.8 / lib / active_record / name_scope.rb: 92: `named_scope '/ users / vjmair /.gem/ruby/1.8/gems/activerecord-2.3. 8 / lib in /active_record/named_scope.rb:97:in `call '/ user / VJMAR / Gem / RBI / 1.8 / GEM / ActitarCard -2.3.8 / LIB / Active_Record / Nemma_Scope. RB: 97: In 'Search' / Users / Vjmayr / softwareclick / app / controllers / categories_controller.rb: 12: `Search 'In  

...

  def search @allproducts = Product.search (Params [: search],: conditions => [' category_id In (?) ', @category subtree_ids]) # line 12 if the consultation [: search] @products = product. Search (Param [: Search],: Conditions => ['category_id in (?)', @category subtree_ids]). Pagnet: per-page = & gt; 30 ,: Page = & gt; Param [: pg] # line 14 other @ products = [] for end response. Format | Format.html # show.html.erb format.xml {Render: xml = & gt; @ Category} End End  

Can anyone point me to the root cause of the problem? I'm stuck ...

Thank you!

Value

P. s. The strange thing about the row 12 is that it should not be used, because I search in the consultation .... when I disable it, the error refers to line 14

Try this:

  Product.search (params [: search]). All: conditions => ... # this product. Search (Param [[Search:]) also works. Pagnet: Conditions = & gt; ...  

I hope it helps.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -