How Do I get searchlogic to work with rails 3?

后端 未结 2 2007
南旧
南旧 2021-02-01 09:49

I put searchlogic in my gemfile... and now my rails server won\'t start :(

this is the errormessage

gems/ruby-1.8.7-p299/gems/activesupport-3.0.0/lib/act         


        
相关标签:
2条回答
  • 2021-02-01 10:30

    In rails 3, you could use meta_search instead.

    It is very similar to searchlogic but

    <%= order @search, :by => :name, :as => "Order By Name" %>
    

    is changed to

    <%= sort_link @search, :name, "Order By Name" %>
    
    0 讨论(0)
  • 2021-02-01 10:48

    There's the railsdog's searchlogic fork on github that supports Rails 3.

    You can add it to your Gemfile like this:

    gem 'rd_searchlogic', :require => 'searchlogic', :git => 'git://github.com/railsdog/searchlogic.git'
    
    0 讨论(0)
提交回复
热议问题