Displaying 20 results from an estimated 100 matches similar to: "undefined method for Polymorphic association using 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.rb:92:in
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 results of the find displays all my
items, before i even search for
2010 Jan 18
1
binarylogic-searchlogic ~> 2.0 binarylogic-authlogic mbleigh-subdomain_fu
I am having problem starting my app, here''s the error message, i am
running Ubuntu 9.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:
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 with a web server
(mongrel). I see the problem in the
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, send email to
2010 Jun 24
0
Using searchlogic with acts_as_taggable_on
Hi,
i have 2 model, Merchant and Items and using acts_as_taggable_on
Merchant has_many Items, and i try to find Merchant with search logic
including the tags
class Merchant < ActiveRecord::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
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 something the params look like (good):
Parameters:
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
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''
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 following
2010 Apr 07
3
Recommendation for searching with regards to timestamp & foreign key attributes
hi guys,
I need a recommendation for searching with regards to timestamp &
foreign key attributes. Sounds
a bit too much but here''s an example.
Suppose we have a "blog" object. It has many attributes such as
- title
- content
- status_id
- created_at
- updated_at
There are also "status" objects which have the following statuses,
"new",
2009 Feb 06
0
Comparing weighted histograms?
I'm trying to plot and compare weighted histograms and I can't seem find
where to start. I have data similar to this:
Miles2LAX RADAM2005Pct LAWA2005Pct
35.57 .00123 .00684
24.74 .00118 .00187
27.09 .00965 .00876
16.23 .00587 .00397
{ ...
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 => "index"}
do |f| %>
but its
2012 Jun 16
1
searching on model and related attributes
Hi all,
Haven''t played with rails for a while so I''m a little stuck. I''ve got to
make a search functionality across models.
Let me try to explain this (sorry for lack of clarity, I''ve been reading
so many search gems etc that I''m a little fuzzy now):
* Stores have town and county fields
* Stores has_many Products which each have their own name and
2011 Nov 21
1
uninitialized constant Sass::Script::Functions::EvaluationContext
Hi, after deploying a bunch of modifications to my web app... I get the
error attached trying to load the page (see attached file). This is my
environment.rb file:
config.gem ''warden''
config.gem ''devise'', "~> 1.0.9"
config.gem "role_model"
config.gem "formtastic", :version => "~> 0.9.10"
config.gem
2010 Dec 24
0
keep getting "undefined method `map' for nil:NilClass (NoMethodError) " in new server
hi guys,
I have a new development server (ubuntu 10).
I have done the following (the versions match my existing development
machine which works fine):
1. installed ruby 1.9.1p378
2. installed ruby gems 1.3.7
3. installed rails 2.3.8 (used "gem install rails -v 2.3.8")
4. manually installed my other gems including sphinx and thinking
sphinx with "gem install ..."
5. ran
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)
Hello Guys,
I have a model "Person" with lots of columns (date, int, string, so on) and
right now I need to make a filter for my costumer.
My goal is something like this:
http://www.redmine.org/projects/redmine/issues.
Or, even better: http://trac.edgewall.org/demo-0.12/query.
The most interesting feature for me is to be able to choose different
columns and to have customized options
2010 Jan 07
2
Find by looping thru array
Hello all,
I''m in my third month of Ruby on Rails. I think it''s coming along
fairly well.
My current issue is this.
I''m do a search based on string data some of which is very long. So I''m
doing a similar match using "amatch" gem.
When I have a 50% or greater match I store the id to an array.
How can I do a find looping thru the array then send the
2013 Jun 29
0
rake db:create giving undefined method `' for nil:NilClass
My ruby version is 1.8.7
I have installed mysql-essential-5.0.90-win32
and using Fedena 2.3.5
List of all gems installed:*
columnize (0.3.6)
declarative_authorization (0.5.1)
fattr (2.2.1)
ffi (1.9.0)
gem_plugin (0.2.3)
highline (1.6.19)
i18n (0.4.2)
metaclass (0.0.1)
mime-types (1.23)
mocha (0.14.0)
mongrel (1.1.5)
mysql (2.8.1)
net-ping (1.6.0)
prawn (0.6.3)
prawn-core (0.6.3)
prawn-format