similar to: One model won''t work like the others, generating weird error

Displaying 20 results from an estimated 180 matches similar to: "One model won''t work like the others, generating weird error"

2006 Apr 13
0
Re: One model won''t work like the others, generating weird e
Rails assumes tables that have a column called type are using a single inheritance pattern. For example, if you had a model called Article and then had a model called News and another called Feature that both inherit from Article. You can use a single table to represent both child types data. The type column tells rails which model should be used to create the object. sean -----Original
2006 Mar 07
6
Can Ruby and PHP play nice together?
I''m busy trying to bang out a new version of the website for my fantasy baseball league (www.ibl.org) and I''m torn as to what to do. I''m a PHP coder by day (Zend Certified and everything) but like Rails too. Now, the site is morphing into a "blog plus tools for league members" site. A lot of those tools are already written in PHP and I don''t want
2006 May 02
3
Writing tests for plugins
I''ve been googling around trying to find some tips on creating tests for plugins. Am I correct in assuming that I''d have to have the tests as part of a rails app in order to test the plugin? I''d like to find a way to do standalone tests for the plugin. -- Posted via http://www.ruby-forum.com/.
2003 Aug 05
2
FreeBSD5.1 as PDC cant connect winXP box
I am at the end of my rope, I am trying to get a winxp box to logon to a pdc using freebsd5.1 and keep getting "Logon failure: unknown user name or bad passsword." or "Access Denied". I am trying to logon with 'root' and the user is in smbpasswd and /etc/passwd. I think my problem is I am not sure how to add the machine account into the samba server. I have tried just
2005 Nov 16
19
Concerns over Rails' handling of tests
Sorry if this comes across as a bunch of disjointed thoughts...I''m just trying to put my thoughts down and I''d like to know what other people''s opinions on the subject are. I''ve been working with Rails for 3 or 4 months now and I''m constantly trying to look at ways of improving my testing techniques, especially when it comes to TDD. I have a few
2010 Mar 10
1
ifelse logic and multiple assignments
I'm a fairly new R user and while I have a solution to my problem I'm wondering if there is a better one. In SAS it's common to use if/then logic along with a "do" statement to make several things happen. While I could do the same thing in R using a "for" loop, and "if" and {}, I've read that loops are less common in R and I wonder if I'm doing
2017 Sep 22
1
Treating NA in timeSeries package
Dear All, I am facing problem with NA treatment in my financial time series data. # data reading aluminum = read.csv(file="alu.csv", header=T, sep=",") fut = aluminum [,2] spt = aluminum [,3] # Missing Value Treatment (Linear Interpolation) spt = interpNA(spt, method = c("linear")) fut = interpNA(fut, method = c("linear")) fut=fut[,1] spt =spt[,1]
2018 Nov 29
2
MRutter PPA versioning issue, again
Michael, ESS broke again on my laptop after I upgraded to Ubuntu 18.10. The elpa-ess package seems to be provided multiple times, sadly the one with xenial (16.04) in its name wins ... and breaks the setup. I one for cosmic, I had one from bionic (18.04), but because the names 'wrapped' the 'x' wins over 'b' and 'c'. We had talked about that in the past, it
2005 Jun 16
1
Sweave and sideways
Hi there, I'm rying to 'turn' an Schunk in an .Rnw file(Xemacs-21.4.13, ESS-5.2.8, R-2.1, miktex-2.4.1705). Has anyone got the isorot package to work with Sweave? JC example test.Rnw: \documentclass[a4paper]{article} \usepackage{Sweave} \usepackage{isorot} \rotdriver{dvips} \clockwise \title{Sweave Example 1} \author{apologies to Friedrich Leisch } \begin{document} \maketitle
2010 Nov 24
1
segfault interest?
in a long program, I ran into ?*** caught segfault *** address 0xdc3f9b48, cause 'memory not mapped' Traceback: ?1: rep.int(seq_len(nx), rep.int(rep.fac, nx)) ?2: rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) ?3: expand.grid(seq_len(nx), seq_len(ny)) ?4: merge.data.frame(d, ss) ?5: merge(d, ss) ?6: valid.range(opt) ?7: eval.with.vis(expr, envir, enclos) ?8: eval.with.vis(ei,
2001 Jul 16
2
Config file
i'm having problems creating confgi file someone can send me your config in mail body or how is head of config file because i'm receiving the follow message when i type wine wineserver: /$HOME/.wine/config is not a valid registry file wine client error:(nil): recvmsg: Connection reset by peer
2004 Nov 02
1
1.0-test52
http://dovecot.org/test/ I have very high hopes that mbox support is finally stable in this version. I've been running some stress tests for an hour now without it breaking (well, there are two potential problems but I think they were just fixing previous breakages). Before it took only a few minutes at most to break. - fixes several mbox syncing problems, especially expunges
2002 Jan 05
1
Meilleurs Voeux pour 2002 : ann?e de m?moire, de mobilisation, d'action, de justice et de s?r?nit? - Appel au soutien moral et financier
Meilleurs Voeux pour 2002 : année de mémoire, de mobilisation, d'action, de justice et de sérénité - Appel au soutien moral et financier ======================== M. Habib HAIBI, 7, Aguesseau St. 69007 LYON - France Tél. 00 33 4 72 73 19 08 - Fax 00 33 4 78 61 39 27 Email : haibi@free.fr http://haibi.free.fr Je suis qualifié pour exprimer mes voeux pour le Nouvel An à tous les survivants
2004 Aug 06
1
Meilleurs Vœux pour 2002 : année de mémoire, de mobilisation, d'action, de justice et de sérénité - Appel au soutien moral et financier
Meilleurs Vœux pour 2002 : année de mémoire, de mobilisation, d'action, de justice et de sérénité - Appel au soutien moral et financier ======================== M. Habib HAIBI, 7, Aguesseau St. 69007 LYON - France Tél. 00 33 4 72 73 19 08 - Fax 00 33 4 78 61 39 27 Email : haibi@free.fr http://haibi.free.fr Je suis qualifié pour exprimer mes voeux pour le Nouvel An à tous les survivants
2007 Apr 13
3
rspec on rails won''t install
Hi: This command: svn co svn://rubyforge.org/var/svn/rspec/tags/REL_0_9_0/rspec_on_rails/vendor/plugins/rspec_on_rail Gives me this output: svn: URL ''svn://rubyforge.org/var/svn/rspec/tags/REL_0_9_0/rspec_on_rails/vendor/plugins/rspec_on_rails'' doesn''t exist If I go the ''script/plugin install'' route, I get "Export complete." Anybody know
2006 Aug 07
0
integration test won''t run
Im trying to write and run integration tests in my app, but they keep failing with an error like "uninitialized constant IntegrationTest" secificly: /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/ active_support/dependencies.rb:123:in `const_missing'': uninitialized constant IntegrationTest (NameError) I tried creating a fresh rails app and was able to run an
2006 Jul 10
0
Paypal gem issues Webrick won''t boot :(
I installed the paypal gem and downloaded the plugin as instructed at http://dist.leetsoft.com/api/paypal/ When the plugin is in the vendor/plugins folder WEBrick refuses to start. No error messages, just "=> Booting WEBrick..." then back to my prompt. Do I have to declare the plugin someplace or something? -- Posted via http://www.ruby-forum.com/.
2006 Jul 24
1
meantime_filter won''t pick up my missing methods
<code><pre> module Scope protected def method_missing(method_id, *arguments, &block) if method_id.id2name =~ /^scope_([_a-z]\w*)_to_([_a-z]\w*)/ scope_model($1.singularize.capitalize, "#{$2}_id", &block) else super end end def scope_model(klass, foreign_key, &block) eval(klass).with_scope({ :find =>
2006 Jul 31
0
validates_confirmation_of won''t work
Hello folks, this is the first time I''ve written to this forum. If there''s already a topic on this, forgive me but the search isn''t working right now. I seem to have a problem validating confirmation of a password. The first two snippets are some model code and some test code that work just fine: ---------------------------- class Challenge < ActiveRecord::Base
2006 Jun 14
2
script/generate --pretend; Won''t
Cannot pretend: > ruby script\generate --pretend controller entryform index Couldn''t find ''--pretend'' generator I just wanted to see what files it would generate... Warren Fred