search for: searchlogic

Displaying 20 results from an estimated 27 matches for "searchlogic".

2010 Mar 09
1
Ruby 1.9 and Searchlogic problem
Hello, After updating our Rails app to ruby 1.9 there are some problems with searchlogic, here you can find the error : Error : wrong number of arguments (1 for 0) Full trace ( passenger ) : /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/named_scope.rb:92:in `call'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/named_scope...
2010 Mar 01
0
undefined method for Polymorphic association using Searchlogic
I am unable to call a polymorphic scope using the searchlogic plugin as it keeps on returning ''undefined method''. I am certain it is only a problem within my project as I created a test project and I was able to call a polymorphic scope using the searchlogic plugin. I am hoping someone can provide a suggestion on how to debug this issue. M...
2010 May 16
3
searchlogic
Hey The guys at the searchlogic google groups seem to be asleep -.- They didnt'' grant me permission to post yet. But anyways, right now, I followed the searchlogic tutorial found here -http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering- and-searching-with-searchlogic/ however, in that tutorial, the res...
2010 Mar 06
1
searchlogic is_any needs to be switched to equals_any
Does "is_any" has a bug in searchlogic? "is_any" used to work fine for me. All of a sudden now, for unknown reasons, when I write for example :attribute_is_any => [1] , the sql output is "where attribute != 1" which is the opposite of what I want of course. Curiously, the problem only occurs when running wit...
2010 Mar 23
1
has_many_polymorphs with searchlogic
Has anyone been able to use searchlogic with has_many_polymorphs? Are they compatible? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group...
2011 May 04
1
is not allowed as an instance variable name error
Hey all, I get error like this: ActionView::TemplateError (`@content_for_details_view_builder__-626960428'' is not allowed as an instance variable name) in app/views/shared/_details_view.haml: searchlogic (2.4.27) lib/searchlogic/rails_helpers.rb:75:in `fields_for'' searchlogic (2.4.27) lib/searchlogic/rails_helpers.rb:64:in `form_for'' app/helpers/builders_helper.rb:68:in `details_view'' /home/app-sptr/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in...
2010 Jan 18
1
binarylogic-searchlogic ~> 2.0 binarylogic-authlogic mbleigh-subdomain_fu
...04 with Apache with Passenger: The application has exited during startup (i.e. during the evaluation of config/environment.rb). The error message can be found below. To solve this problem, please follow any instructions in the error message. Error message: Missing these required gems: binarylogic-searchlogic ~> 2.0 binarylogic-authlogic mbleigh-subdomain_fu You''re running: ruby 1.9.1.0 at /usr/local/bin/ruby rubygems 1.3.5 at /usr/local/lib/ruby/ gems/1.9.1 Run `rake gems:install` to install the missing gems. This is my environment.rb: config.gem ''binarylogic-searchlogic'&...
2010 Jun 24
0
searchlogic+date_select+ordering
hi there, i try to use searchlogic to find entities by date. its working if i just try to search something. the ordering helper is also working if i just show all results. if i want to order (lets say by zipcode) and find by date it wont work. the order helper messes up the params[:search] in case of using a date if i just search s...
2010 Jun 24
0
Using searchlogic with acts_as_taggable_on
...d::Base acts_as_taggable has_many :items end class Item < ActiveRecord::Base acts_as_taggable belongs_to :merchant end This works >> Merchant.tagged_with(''Tag 1'') but this doesn''t >> Merchant.tagged_with_or_name_like(''Tag 1'') Searchlogic::NamedScopes::OrConditions::UnknownConditionError: The condition ''tagged_with'' is not a valid condition, we could not find any scopes that match this. Can anybody help me with this ? Thanks -- You received this message because you are subscribed to the Google Groups "Ruby...
2010 Nov 30
1
rails 3 meta_search usage
I am in the process of upgrading my app from Rails2 to Rails3. My Rails2 app uses searchlogic heavily. After googling i''ve come to know that searchlogic is not compatible with Rails3 and need to use meta_search instead. But i havent quite understood the usage of meta_search vis-a-vis searchlogic. If i have a User model with :name and :address fields, i am not able to use the foll...
2010 Jan 15
1
Chaining queries in ActiveRecord
Hi all, Stuck at this problem for several days. Tried to use named_scope, scope_out, and plugin such as searchlogic, but no result. The problem is as follows: I have a pic table and tag table, and a join table called pic_tag (with only pic_id and tag_id) so that I can associate N pics to M tags. This is the tutorial way to set up a many- to-many association. I''m trying to implement a simple search func...
2009 Dec 22
16
Will paginate is missing on rake db:migrate
....org" I use snow leopard. What have I done wrong? Jonas-MB:stuteri jeb$ gem list *** LOCAL GEMS *** actionmailer (2.3.5) actionpack (2.3.5) activerecord (2.3.5) activeresource (2.3.5) activesupport (2.3.5) authlogic (2.1.3) nifty-generators (0.3.0) rack (1.0.1) rails (2.3.5) rake (0.8.7) searchlogic (2.3.9) sqlite3-ruby (1.2.5) tabs_on_rails (1.0.0) will_paginate (2.3.11) Jonas-MB:stuteri jeb$ gem environment RubyGems Environment: - RUBYGEMS VERSION: 1.3.5 - RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10] - INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8 - RUBY E...
2010 Apr 07
3
Recommendation for searching with regards to timestamp & foreign key attributes
...new_blogs = Blog.all(:conditions => { :created_at => (Time.now - 24.hours) .. (Time.now) } ) Tested and that works just fine. Suppose I would like to get all blog entries which are not of the status of ''published'' or ''archived''. I would just make use of searchlogic in the following way: new_blog_entries = Blog.searchlogic(:status_name_does_not_equal_all => ([''published'', ''archived'']) ) OR new_blog_entries = Blog.status_name_does_not_equal_any([''published'', ''archived'']) Question: ==...
2010 Feb 22
1
form_for redirect to another controller
I have 2 controllers foo, bar and I''m using searchlogic gem to search products inside both controllers. All works great but I want to implement now custom form_for from foo view to search products for bar controllers, how to do this ? I try something like this: <% form_for @search, :url => {:controller => "bar", :action => "...
2012 Jun 16
1
searching on model and related attributes
...;t think it would be user friendly to put them in a long drop-down list, so I''m tempted to let users type in the name and level manually. If they don''t type the name correctly, then I guess they won''t get the right results. I''ve looked at several gems (including searchlogic and ransack) but none seem to give me the ability to search related models in this way. I might have to knock together something from scratch but I don''t want to end up being hideously inefficient. Grateful for any pointers on this, and please let me know if I haven''t explained i...
2009 Jul 20
9
rake error
...t (0.2.6) prawn (0.5.0.1) prawn-core (0.5.0.1) prawn-format (0.2.0.1) prawn-layout (0.2.0.1) rails (2.3.2, 2.2.2) rake (0.8.7) rcov (0.8.1.2.0) RedCloth (4.2.2) relevance-rcov (0.8.3.4) rmagick (2.10.0) rspec (1.2.7) ruby-debug (0.10.3) ruby-debug-base (0.10.3) ruby_parser (2.0.3) rubyforge (1.0.3) searchlogic (2.1.2) sexp_processor (3.0.2) term-ansicolor (1.0.3) termios (0.9.4) thoughtbot-shoulda (2.10.2) topfunky-gruff (0.3.5) treetop (1.2.6) unicode (0.1) uuidtools (2.0.0) webrat (0.4.4) Thanks for any help!
2009 Nov 12
3
Got NoMethodError on Model's find method.
Hi All, I don''t know how this could happen. I got NoMethodError on running a simple Model''s find method. At first i have the same error for running find_all_by_country method where country is one of the model''s attributes. So, running a find method also doesn''t help. I have no problem running the methods on rails console. What should i check? Has anyone had a
2010 Jan 07
2
Find by looping thru array
...title).to_s # push to array projects.push(project.id) end end # Next, we need to access all matching ids then query project table for ids. # loop thru array # HERE''S WHERE I''M LOST projects.each do |m| m.id end #QUERY USING SEARCHLOGIC, IF EASIER I COULD USE JUST "FIND" projects = Project.id_like(id).paginate(:page => params[:page], :per_page => 20) #RENDER PARTIAL render :partial => ''projects/results'', :locals => {:projects => projects} end Thank you for any help on this...
2009 Jun 09
0
serachlogic pagination is not working
Hi rails mates I am very much impressed with searchlogic plugin, very easy to write a complicated queries for search which have builtin pagination. Example is working perfectly but in my application, its not working. I dont have any idea to solve this problem. Thanks in advance
2010 Sep 04
0
Dynamic Filters with AJAX (like Redmine/Trac)
...aid, my questions are: - Does anybody know anything (Gem, plugin or tutorial) that can help me on the backend or on the frontend? I am using jQuery and Rails 3. - Is the new ActiveRecord Query API on Rails 3 complete enough to make this in a DRY way or should I use a specific Gem for searching (eg. searchlogic)? - Is there any opensource Rails project with such a complete filter like Trac? - Should I try to release it as a Gem when its done? :D Thanks in advance and please excuse my poor English :P -- Fernando Brito -- You received this message because you are subscribed to the Google Groups "Ru...