similar to: searching on model and related attributes

Displaying 20 results from an estimated 9000 matches similar to: "searching on model and related attributes"

2012 Sep 04
3
Thinking Sphinx and Ransack in the same application?
I have Ransack set up to do simple attribute-based search in my application. Now, I''m trying to add TS to the app to enable full-text searching. Trouble is, both of these define a Model#search method. Has anyone here ever tried this combination? Is there a way to rename the search method on either of these? Thanks in advance, Walter -- You received this message because you are
2013 May 27
3
Ransack, acts-as-taggable-on and checkboxes in search form
need some help on ransack filtering. I have model Project, which has many tags through acts_as_taggable gem. Project.rb: class Project < ActiveRecord::Base include PublicActivity::Common belongs_to :customer belongs_to :category has_many :attachments, :as => :attachable has_many :reports, :dependent => :destroy has_many :messages, :dependent
2012 Feb 21
10
Search of multiple columns
I am currently writing a search method for my rails applications and at the moment it works fine. I have the following in my game.rb: def self.search(search) if search find(:all, :conditions => [''game_name LIKE ? OR genre LIKE ? OR console LIKE ?'', "%#{search}%", "#{search}", "#{search}"]) else find(:all) end end No that searches
2006 May 09
3
How to transfer variables from one page to another page ?
Hi, In my application I want to tranfer a variable (store_id) from one page to next without putting it into session. How should I do this? Is there any way to transfer variable from one to other page using methods other than sesion? Thanx Prash -- Posted via http://www.ruby-forum.com/.
2006 Jun 06
6
Linking two tables using a lookup table
Hi, How do I associate two different tables which have a lookup id (table) as common. I tried the has_many :table2, :through => look_up_table in my table1 model. Any hints? Thanks, Hari -- Posted via http://www.ruby-forum.com/.
2006 Jul 31
1
How to get result of following SQL Query in Ruby?
Hi, I have 2 tables as follows:- _________________ ________________ ____________ taggings | |stores | | tags | -----------------| |---------------| |------------| --tag_id | |--store_id | |tag_id | --store_id | |--store_name | |tag_name | --user_id | |---------------| |------------| -----------------| Now I want to execute
2010 Aug 02
7
Complex associations
I am working on a project that has some complex table associations, and I am having a hard time declaring this association in a Model, and fear it can''t be done. Here is an example of my issue... class StoreType < ActiveRecord::Base; end class Store < ActiveRecord::Base; end class Department < ActiveRecord::Base; end class Product < ActiveRecord::Base; end A StoreType has
2011 Aug 16
3
Bayesian Relative Survival Analysis in R?
Hi all, May i know does R has packages or code to run "Bayesian Relative Survival Analysis"? I have look through Bayesian Survival Analysis(2001) by Joseph George Ibrahim<http://www.google.com/search?tbo=p&tbm=bks&q=inauthor:%22Joseph+George+Ibrahim%22>, Ming-Hui Chen<http://www.google.com/search?tbo=p&tbm=bks&q=inauthor:%22Ming-Hui+Chen%22>, Debajyoti
2006 May 27
10
Displaying Hours
Here''s an intersting one: I have a client who wants to store hours of operation of a business for their RoR web app. I came up with a solution, but I really don''t like it. I have a MySQL table that has these fields monday_start, monday_end, tuesday_start, tuesday_end, etc., all as time fields. That''s all find and dandy. The kicker is, the client wants the hours to
2016 Nov 29
1
Multi Stream Transport
Hello, Can you please help. Which versions of Centos 6 and 7 support Multi Stream Transport (MST) on DisplayPort graphics. Regards, Mark Woolfson MW Consultancy Ltd Leeds LS18 4LY West Yorkshire United Kingdom Tel: +44 113 259 1204 Mob: +44 786 065 2778 Em: julie at mwcltd.co.uk (Commercial) Em: mrw at mwcltd.co.uk (Technical) Web: www.mwcltd.co.uk
2006 Feb 27
1
Samba 3.0.21b binaries on AIX 5.2 ML4, fails to run after install
After installing the prbuilt binaries from samba.org for AIX 5.2, and installing, I get the following running testparm or smbstatus :- [WMSTRAIN:root]/opt/Samba/3.0.21b/bin> smbstatus exec(): 0509-036 Cannot load program smbstatus because of the following errors: 0509-130 Symbol resolution failed for smbstatus because: 0509-136 Symbol statvfs64 (number 115) is not exported
2002 Sep 16
1
Samba 2.2.0 error on AIX 4.3.3
Hi We are getting the following error message on Samaba 2.2.0 on AIX 4.3.3:- lib/debug check_log.size (437) File/var/samba/log.smbd failed - using console write_socket_data: write failure. Error = Broken Pipe Can you help please. Robin Smith Technical Director Reflex Data Systems Ltd CONFIDENTIALITY NOTICE This email and any attachments should be read only by
2011 Jun 17
3
Server question
Hi A client of mine has asked me to investigate the installation of R-software. Could anyone tell me whether the software works only on a client machine or whether it sits on a server with clients attaching to it? Not immediately clear from the docs. Best Oliver -- Oliver Jones T: 01845 595911 M: 07977 122089 DIG*RED Web Production | <http://www.digred.com/>
2006 Dec 05
1
Cannot connect to Samba-3.0.23d (and earlier) from other trusted AD domains
Hi there We have a bunch of Samba 3.0.10+ CentOS4.4 servers that are working 100% fine when connected to from users who are members of the same ADS domain our Samba servers are members of. However, users from other ADS domains (we are all W2K3-based) on our network cannot connect - they get NT_STATUS_ACCESS_DENIED. The shares they are trying to connect to have no share-level permission checks -
2006 Mar 28
3
Error compiling samba 3.0.21c, AIX 52 ML7 gcc 3.3.2
Can anyone help with the following error I get whilst comiling samba, configured with following flags:- ./configure --prefix=/opt/samba-3.0.21c --with-ldap --with-ads --with-krb5 --with-pam --with-winbind heimal kerberos heimdal-0.7.2 openldap openldap-2.3.20 [WMSTRAIN:root]/appfs2/samba/samba-3.0.21c/source> make && make install Using FLAGS = -O -D_SAMBA_BUILD_ -I./popt
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",
2008 Jul 09
4
Strptime/ date time classes
Dear all, I've come across a problem using strptime, can anyone explain what's going on? I'm using version 2.7.0 on Windows XP. Thank you Caroline First read in a data file using read.table alldata = read.table(file, header=F, skip=4, colClasses = c("character","numeric")) dim(alldata) [1] 223960 2 # inefficient, safe way of sorting out missing or dodgy
2006 Mar 11
1
Ordination of feature film data question
I am severely rusty re. multivariate / ordination analysis, having done my last work 40 years ago (in plant ecology). I am interested in exploring applications of multivariate analytic approaches to data from the history of motion picture films. I'd very much appreciate any pointers as to possibly appropriate proceedures. The individual "samples" may be individual films and the
2013 Jul 22
1
about mix type clust algorithm
Hi: I have tried to find the appropriate clust algorithm for mixed type of data. The suggested way I see is: 1. use daisy to get the dissimilarity matrix 2. use PAM/hclust by providing the dissimilarity matrix, to get the clusters but by following this, when the data set grows bigger say 10,000 rows of data, the dissimilarity matrix will be O(n^2), and out of memory will occur. I am
2006 Aug 10
6
passing hash from controller to view and pluralization?
hi, i have 2 tables (counties and towns). counties has_many towns and towns belong_to counties. now my question: i thought i would need to do is say @counties = Counties.find(:all). should that not return to me all counties in the counties table WITH all towns associated with each county? in my view i was getting error when doing this if(counties.has_towns?) saying undefined has_towns