similar to: advanced search with ferret?

Displaying 20 results from an estimated 2000 matches similar to: "advanced search with ferret?"

2006 Feb 23
1
HABTM testing - fixtures not loading?
Hi, I have a strange problem with testing classes which have a HABTM relation. It seems that while running my tests with rake the fixture for the association table is not loaded - as a result I get a failure on a test which simply checks the number of associated elements - it says it''s 0 although there should be one. The weird thing is that when I run the tests with rcov
2005 Sep 06
1
error_messages_for - different controllers, one view [revisited]
Hi there, some time ago there were two posts on this subject on this list: One way that might satisfy the elegence factor is to treat your > comment controller as a component in this case, calling > render_component within your post controller where you need to process > the comment. > > http://manuals.rubyonrails.com/read/chapter/73 > > There are a few ways you could do
2006 Apr 20
1
fit testing, FitNesse
Hello, this is a typical "how do you do it in Rails" question :) I would like to incorporate fit testing into a RoR app and I''d like to hear your recommendations on how to do it. In the ideal world I would like all the table test definitions and implementations stored in svn together with the app, ability to run the tests with a rake task + a hook to FitNesse, so that
2006 Mar 18
9
How do I write this SQL the Rails way?
I''m trying to find all the unique bill_number, status records in Bills table. I can do it with a find_by_sql statement like this: @records = Bill.find_by_sql( "select distinct bill_number, status from bills group by bill_number, status;") How would I rewrite it using ''find :all
2006 Jan 30
3
Arrays of objects as parameters to webservices
I think I am missing something terribly obvious. Is it possible to have an :expects parameter for a webservice that is an array of objects? I want to have a single webservice that expects all my line items (for an order). Is this something that is possible? -- Posted via http://www.ruby-forum.com/.
2005 Dec 28
0
urls in ActionMailer
Hello, I know the ticket about enabling url_for in ActionMailer views is closed and that there are some possible workarounds to this problem such as passing the controller instance or links from the controller, but I cannot figure out what to do if my emails are not sent from a controller - like periodic reminders or notifications triggered by a system scheduler, which need to include links.
2006 Mar 31
2
Backslash Escaping in View
Ok, I''m hoping this won''t be a forehead slapper, but take a look at this code: physician.name.sub(/''/, "\\''") I''m trying to substitute a single quote with a backslash and a single quote. This seems pretty simple right? Well, someone kick me and tell me why it''s not :) Here''s what I''m getting if the
2005 Feb 18
2
This is NUTS!!
G'Day All; So I purchased a Cisco 7960 and am now trying to get it configured for *. No can do without the variuos files/images through a FTPF server. I configured the TFTP server on my RHES 3 box, now to get the required CISCO files. So I contacted CISCO to purchase the required maintenance contract so as to gain access to the download area for the files/images. -WHAT A FRUSTRATION!!-
2006 Mar 24
2
Return all rows, split then show uniques
I''m returning some rows from a tags database that look like this: ID WORDS 1. apple banana pear 2. banana melon 3. apple peach lime What I want to do with that data is use the .split method to divide them into separate values in an array, then use the .uniq method to return a unique list of the words like so: apple, banana, pear, melon, peach, lime So in my controller I
2008 Apr 09
2
GLM fitting in R and Statistica
Hi, I have a problem concerning discrepances between R (which I use) and Statistica (which uses my supervisor). I can't say what is the origin of these differences but unfortunately my supervisor doesn't know that either. Our response variable is number (or presence/absence) of parasites in rodents and explanatory variables are presence/absence of several alleles. The rodents were
2005 Aug 08
2
INDVAL and mvpart
Hi, I'd like to perform Dufrene-Legendre Indicator Species Analysis for a multivariate regression tree. However I have problems with arguments of duleg(veg,class,numitr=1000)function. How to obtain a vector of numeric class memberships for samples, or a classification object returned from mvpart? thanks in advance -- Best regards, Agnieszka Strzelczak
2006 Mar 22
9
render partial from withit mail template
Hi, I''m trying to include a partial in an email template but it throws me this: undefined method `controller_path'' for SupportMailer:Class Extracted source (around line #12): 11: 12: <%= render :partial => ''footer'' %> I guess email views are a little different from normal ones as they don''t seem to have a access to a proper controller (?)
2006 Mar 30
2
How do I format text before saving it?
I tried to use a before_save and use simple_format, it returns and undefined method error. Can I even use these methods within a model? I tried to use auto_link and it failed too. What am I doing wrong? Furthermore, would it be recommended I format text before saving it to the database? Advantages or disadvantages? -- Posted via http://www.ruby-forum.com/.
2005 Sep 19
4
indicator value in labdsv
Hi, I'm trying to find out what threshold of indicator value in labadsv should be used to accept a specie as an indicator one? So far I assumed that indval=0.5 is high enough to avoid any mistakes but it was based only in my intuition. I'd be greatful for any advise best regards Agnieszka
2010 Jun 04
1
Shapes in barplots
Hi, I am making barplots . I am using the default shape of barplots with a pipe but I wants to build bars in various 3d shapes. I have install rgl using install.packages('rgl') for this purpose, but when I am doing library(rgl), it shows Error in library(rgl) : there is no package called 'rgl' What are the other ways to build such plots of variuos shapes. Is that *TeachingDemos
2003 Oct 01
1
roaming profile, w2k and chjaracter sets - PLEASE HELP URGENTLY!
I've been running verious version of samba 2.2.x up to last night. I now converted all my server so 3.0 with ldapsam. All my w2k roaming profiles now refuse to load, complaining about not being able to load various files in the profile dir containing special chars. Things like Sendto\3>> floppy... or 3?floppy or 3||!!|floppy is displayed where it should be 3<ascii character for
2005 Feb 19
2
This is NUTS!!SOLVED
Thanks everyone for your feedback, especially Mark. I now have the ALL the files I need. My order still stands for the $8.00 product from CISCO but the CP7960 dealer sent me all the files. Now I will move on to completeing the setup of the TFTP server. Thanks again -----Original Message----- From: Michael Loftis [mailto:mloftis@wgops.com] Sent: Friday, February 18, 2005 7:51 PM To:
2006 Apr 03
15
How should I pick a random entry from the database?
Hi guys. Total newbie here. I''ve been doing web stuff since 1996 but only began the foray into scripting last year. I haven''t got my skull completely 360 degrees around OOP yet. It''s just me here (in Japan) and there are no Ruby groups in my area (never mind any in English). I''ve got a database table - real simple: question, answer, and id fields - and I
2006 Mar 31
6
how to access a hash within a hash in ruby?
Simple question: I know how to access a data field in a hash by doing hash_name[datafield_name]. But what if the datafield itself is a hash? I tried a couple of variations but nothing seems to be working and tutorials do not go into such details. Is there a simple way or should I create separate instances? -Chris -- Posted via http://www.ruby-forum.com/.
2006 Mar 30
2
A few problems after installation
Hello, I just installed RoR on my server together with cPanel. On port 3000 there is the Rails welcome page. Could you tell me how I can change the home page directory? Currently, the home page directory is /home/username/public_html, but I''d like to use RoR''s home directory instead. I also have another problem: I put .rthml files and instead of the web server parsing it,